Fix isCompact

This commit is contained in:
Thomas Ricouard 2024-02-02 18:39:39 +01:00
parent f67163e4b0
commit cf81054366

View file

@ -173,7 +173,7 @@ struct BlurOverLay: View {
@Environment(Theme.self) private var theme
@Environment(\.isInCaptureMode) private var isInCaptureMode: Bool
@Environment(UserPreferences.self) private var preferences
@Environment(\.isCompact) private var isCompact: Bool
@Environment(\.isMediaCompact) private var isCompact: Bool
@Namespace var buttonSpace
@ -249,7 +249,7 @@ struct AltTextButton: View {
let font: Font?
@Environment(\.isInCaptureMode) private var isInCaptureMode: Bool
@Environment(\.isCompact) private var isCompact: Bool
@Environment(\.isMediaCompact) private var isCompact: Bool
@Environment(UserPreferences.self) private var preferences
@Environment(\.locale) private var locale
@Environment(Theme.self) private var theme
@ -372,7 +372,7 @@ struct WrapperForPreview: View {
.environment(UserPreferences.shared)
.environment(QuickLook.shared)
.environment(Theme.shared)
.environment(\.isCompact, isCompact)
.environment(\.isMediaCompact, isCompact)
.environment(\.isInCaptureMode, isInCaptureMode)
Divider()
@ -395,7 +395,6 @@ private struct FeaturedImagePreView: View {
@Environment(\.isSecondaryColumn) private var isSecondaryColumn: Bool
@Environment(Theme.self) private var theme
@Environment(\.isCompact) private var isCompact: Bool
@Environment(\.isModal) private var isModal: Bool
private var originalWidth: CGFloat {