This commit is contained in:
anlicheng 2025-03-04 13:33:06 +08:00
parent 2a8f9bb594
commit 3e87a39c44

View File

@ -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)
}
}