mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-14 05:21:12 +00:00
Fixed compact layout for video tip when video autoplay is disabled (#989)
This commit is contained in:
parent
ded5bea4ce
commit
2c174ab72e
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue