mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 05:53:41 +00:00
Fix #479
This commit is contained in:
parent
6ddf1113bf
commit
eaeaa45422
@ -37,16 +37,9 @@ struct VideoBanner: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
HStack(alignment: .top, spacing: 12) {
|
HStack(alignment: .top, spacing: 12) {
|
||||||
ZStack(alignment: .bottom) {
|
|
||||||
VStack(alignment: .trailing, spacing: 2) {
|
VStack(alignment: .trailing, spacing: 2) {
|
||||||
|
ZStack(alignment: .bottom) {
|
||||||
smallThumbnail
|
smallThumbnail
|
||||||
|
|
||||||
if !timeOnThumbnail, let timeLabel {
|
|
||||||
Text(timeLabel)
|
|
||||||
.font(.caption.monospacedDigit())
|
|
||||||
.foregroundColor(.secondary)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.layoutPriority(1)
|
.layoutPriority(1)
|
||||||
|
|
||||||
ProgressView(value: watch?.progress ?? 44, total: 100)
|
ProgressView(value: watch?.progress ?? 44, total: 100)
|
||||||
@ -55,6 +48,13 @@ struct VideoBanner: View {
|
|||||||
.opacity(watch?.isShowingProgress ?? false ? 1 : 0)
|
.opacity(watch?.isShowingProgress ?? false ? 1 : 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !timeOnThumbnail, let timeLabel {
|
||||||
|
Text(timeLabel)
|
||||||
|
.font(.caption.monospacedDigit())
|
||||||
|
.foregroundColor(.secondary)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
VStack(alignment: .leading, spacing: 2) {
|
VStack(alignment: .leading, spacing: 2) {
|
||||||
Group {
|
Group {
|
||||||
if let video {
|
if let video {
|
||||||
|
Loading…
Reference in New Issue
Block a user