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