Fixed compact layout for video tip when video autoplay is disabled (#989)

This commit is contained in:
Thomas Durand 2023-02-22 07:06:01 +01:00 committed by GitHub
parent ded5bea4ce
commit 2c174ab72e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,7 @@ class VideoPlayerViewModel: ObservableObject {
struct VideoPlayerView: View {
@Environment(\.scenePhase) private var scenePhase
@Environment(\.isCompact) private var isCompact
@EnvironmentObject private var preferences: UserPreferences
@EnvironmentObject private var theme: Theme
@ -56,9 +57,9 @@ struct VideoPlayerView: View {
if !preferences.autoPlayVideo {
Image(systemName: "play.fill")
.font(.largeTitle)
.font(isCompact ? .body : .largeTitle)
.foregroundColor(theme.tintColor)
.padding()
.padding(.all, isCompact ? 6 : nil)
.background(Circle().fill(.thinMaterial))
.padding(theme.statusDisplayStyle == .compact ? 0 : 10)
}