fix index view

This commit is contained in:
anlicheng 2025-02-22 01:04:41 +08:00
parent b1a2a13789
commit 3550a5fc38

View File

@ -176,15 +176,23 @@ struct IndexView: View {
} placeholder: {
ProgressView()
}
.frame(width: 370, height: 180)
.frame(width: .infinity, height: 180)
.overlay {
VStack(alignment: .leading) {
Text(item.name)
.lineLimit(1)
HStack {
VStack(alignment: .leading, spacing: 10) {
Text(item.name)
.font(.system(size: 24))
.lineLimit(1)
Text(item.desc)
.lineLimit(1)
Text(item.desc)
.lineLimit(1)
Spacer()
}
Spacer()
}
.padding([.top, .leading], 15)
.border(Color.red)
}
}
}