fix index view
This commit is contained in:
parent
b1a2a13789
commit
3550a5fc38
@ -176,15 +176,23 @@ struct IndexView: View {
|
|||||||
} placeholder: {
|
} placeholder: {
|
||||||
ProgressView()
|
ProgressView()
|
||||||
}
|
}
|
||||||
.frame(width: 370, height: 180)
|
.frame(width: .infinity, height: 180)
|
||||||
.overlay {
|
.overlay {
|
||||||
VStack(alignment: .leading) {
|
HStack {
|
||||||
|
VStack(alignment: .leading, spacing: 10) {
|
||||||
Text(item.name)
|
Text(item.name)
|
||||||
|
.font(.system(size: 24))
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
|
|
||||||
Text(item.desc)
|
Text(item.desc)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
|
|
||||||
|
Spacer()
|
||||||
}
|
}
|
||||||
|
Spacer()
|
||||||
|
}
|
||||||
|
.padding([.top, .leading], 15)
|
||||||
|
.border(Color.red)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user