mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 22:13:41 +00:00
Minor layout fixes
This commit is contained in:
parent
8dd028126c
commit
f631d4f6e3
@ -106,7 +106,7 @@ final class PlayerControlsModel: ObservableObject {
|
||||
|
||||
removeTimer()
|
||||
|
||||
guard !player.musicMode else {
|
||||
guard let player = player, !player.musicMode else {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -34,6 +34,7 @@ struct PlayerControls: View {
|
||||
Group {
|
||||
HStack {
|
||||
statusBar
|
||||
.lineLimit(1)
|
||||
.padding(3)
|
||||
#if os(macOS)
|
||||
.background(VisualEffectBlur(material: .hudWindow))
|
||||
@ -415,20 +416,12 @@ struct PlayerControls_Previews: PreviewProvider {
|
||||
model.currentTime = .secondsInDefaultTimescale(0)
|
||||
model.duration = .secondsInDefaultTimescale(120)
|
||||
|
||||
let view = ZStack {
|
||||
return ZStack {
|
||||
Color.gray
|
||||
|
||||
PlayerControls(player: PlayerModel(), thumbnails: ThumbnailsModel())
|
||||
.injectFixtureEnvironmentObjects()
|
||||
.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