fix
This commit is contained in:
parent
2a8f9bb594
commit
3e87a39c44
@ -406,18 +406,23 @@ extension IndexView {
|
||||
ProgressView()
|
||||
}
|
||||
.frame(width: geometry.frame(in: .local).width, height: 80)
|
||||
.overlay {
|
||||
VStack {
|
||||
.overlay(alignment: .topLeading) {
|
||||
if !item.num_name.isEmpty {
|
||||
HStack(alignment: .center) {
|
||||
Text(item.num_name)
|
||||
.font(.system(size: 12))
|
||||
.foregroundColor(Color(hex: "#333333"))
|
||||
|
||||
Spacer()
|
||||
.foregroundColor(.white)
|
||||
.lineLimit(1)
|
||||
}
|
||||
Spacer()
|
||||
.padding(3)
|
||||
.background(
|
||||
Color.black.opacity(0.6)
|
||||
)
|
||||
.cornerRadius(3)
|
||||
.padding(3)
|
||||
} else {
|
||||
EmptyView()
|
||||
}
|
||||
.padding([.top, .leading], 5)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user