fix ui
This commit is contained in:
parent
3e87a39c44
commit
7ba146abf9
@ -301,23 +301,15 @@ extension DetailView {
|
|||||||
ProgressView()
|
ProgressView()
|
||||||
}
|
}
|
||||||
.frame(width: 90, height: 70)
|
.frame(width: 90, height: 70)
|
||||||
.overlay {
|
.overlay(alignment: .topLeading) {
|
||||||
if !episode.num_name.isEmpty {
|
if !episode.num_name.isEmpty {
|
||||||
VStack {
|
|
||||||
HStack {
|
|
||||||
Text(episode.num_name)
|
Text(episode.num_name)
|
||||||
.font(.system(size: 12))
|
.font(.system(size: 12))
|
||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
.padding([.leading, .trailing], 5)
|
.padding(3)
|
||||||
.background(
|
.background(Color.black.opacity(0.5))
|
||||||
Color.black.opacity(0.5)
|
.cornerRadius(3)
|
||||||
.cornerRadius(5)
|
.padding(3)
|
||||||
)
|
|
||||||
Spacer()
|
|
||||||
}
|
|
||||||
Spacer()
|
|
||||||
}
|
|
||||||
.padding([.top, .leading], 8)
|
|
||||||
} else {
|
} else {
|
||||||
EmptyView()
|
EmptyView()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user