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