fix
This commit is contained in:
parent
2a8f9bb594
commit
3e87a39c44
@ -406,18 +406,23 @@ extension IndexView {
|
|||||||
ProgressView()
|
ProgressView()
|
||||||
}
|
}
|
||||||
.frame(width: geometry.frame(in: .local).width, height: 80)
|
.frame(width: geometry.frame(in: .local).width, height: 80)
|
||||||
.overlay {
|
.overlay(alignment: .topLeading) {
|
||||||
VStack {
|
if !item.num_name.isEmpty {
|
||||||
HStack(alignment: .center) {
|
HStack(alignment: .center) {
|
||||||
Text(item.num_name)
|
Text(item.num_name)
|
||||||
.font(.system(size: 12))
|
.font(.system(size: 12))
|
||||||
.foregroundColor(Color(hex: "#333333"))
|
.foregroundColor(.white)
|
||||||
|
.lineLimit(1)
|
||||||
Spacer()
|
|
||||||
}
|
}
|
||||||
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