fix index view
This commit is contained in:
parent
b1a2a13789
commit
3550a5fc38
@ -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)
|
||||
|
||||
Text(item.desc)
|
||||
.lineLimit(1)
|
||||
HStack {
|
||||
VStack(alignment: .leading, spacing: 10) {
|
||||
Text(item.name)
|
||||
.font(.system(size: 24))
|
||||
.lineLimit(1)
|
||||
|
||||
Text(item.desc)
|
||||
.lineLimit(1)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
Spacer()
|
||||
}
|
||||
.padding([.top, .leading], 15)
|
||||
.border(Color.red)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user