This commit is contained in:
anlicheng 2025-03-04 13:25:15 +08:00
parent eeb82d7152
commit 2a8f9bb594

View File

@ -468,31 +468,24 @@ extension IndexView {
ProgressView()
}
.frame(width: 370, height: 180)
.overlay {
HStack {
VStack {
VStack(alignment: .leading, spacing: 8) {
Text(item.name)
.font(.system(size: 16))
.foregroundColor(.white)
.lineLimit(1)
.overlay(alignment: .topLeading) {
VStack(alignment: .leading, spacing: 8) {
Text(item.name)
.font(.system(size: 16))
.foregroundColor(.white)
.lineLimit(1)
Text(item.status)
.font(.system(size: 12))
.foregroundColor(.white)
.lineLimit(1)
}
.padding(5)
.background(
Color.black.opacity(0.6)
)
.cornerRadius(5)
Spacer()
}
Spacer()
Text(item.status)
.font(.system(size: 12))
.foregroundColor(.white)
.lineLimit(1)
}
.padding([.top, .leading], 10)
.padding(5)
.background(
Color.black.opacity(0.6)
)
.cornerRadius(5)
.padding(8)
}
}
}