mirror of
https://github.com/yattee/yattee.git
synced 2024-12-24 14:33:40 +00:00
Minor layout fixes
This commit is contained in:
parent
8dd028126c
commit
f631d4f6e3
@ -106,7 +106,7 @@ final class PlayerControlsModel: ObservableObject {
|
|||||||
|
|
||||||
removeTimer()
|
removeTimer()
|
||||||
|
|
||||||
guard !player.musicMode else {
|
guard let player = player, !player.musicMode else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ struct PlayerControls: View {
|
|||||||
Group {
|
Group {
|
||||||
HStack {
|
HStack {
|
||||||
statusBar
|
statusBar
|
||||||
|
.lineLimit(1)
|
||||||
.padding(3)
|
.padding(3)
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
.background(VisualEffectBlur(material: .hudWindow))
|
.background(VisualEffectBlur(material: .hudWindow))
|
||||||
@ -415,20 +416,12 @@ struct PlayerControls_Previews: PreviewProvider {
|
|||||||
model.currentTime = .secondsInDefaultTimescale(0)
|
model.currentTime = .secondsInDefaultTimescale(0)
|
||||||
model.duration = .secondsInDefaultTimescale(120)
|
model.duration = .secondsInDefaultTimescale(120)
|
||||||
|
|
||||||
let view = ZStack {
|
return ZStack {
|
||||||
Color.gray
|
Color.gray
|
||||||
|
|
||||||
PlayerControls(player: PlayerModel(), thumbnails: ThumbnailsModel())
|
PlayerControls(player: PlayerModel(), thumbnails: ThumbnailsModel())
|
||||||
.injectFixtureEnvironmentObjects()
|
.injectFixtureEnvironmentObjects()
|
||||||
.environmentObject(model)
|
.environmentObject(model)
|
||||||
}
|
}
|
||||||
|
|
||||||
return Group {
|
|
||||||
if #available(iOS 15.0, macOS 12.0, tvOS 15.0, *) {
|
|
||||||
view.previewInterfaceOrientation(.landscapeLeft)
|
|
||||||
} else {
|
|
||||||
view
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user