From 2ac2e0ce530cd452fc753d28ab3fdcb7426a3b56 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Fri, 20 Jan 2023 06:56:02 +0100 Subject: [PATCH] Fix compact media for single image --- IceCubesApp.xcodeproj/project.pbxproj | 8 ++++---- .../Sources/Status/Row/StatusMediaPreviewView.swift | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/IceCubesApp.xcodeproj/project.pbxproj b/IceCubesApp.xcodeproj/project.pbxproj index ea012228..f53196b2 100644 --- a/IceCubesApp.xcodeproj/project.pbxproj +++ b/IceCubesApp.xcodeproj/project.pbxproj @@ -616,7 +616,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.1; + MARKETING_VERSION = 1.0.2; PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.IceCubesApp.IceCubesNotifications; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; @@ -646,7 +646,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.1; + MARKETING_VERSION = 1.0.2; PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.IceCubesApp.IceCubesNotifications; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; @@ -677,7 +677,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.1; + MARKETING_VERSION = 1.0.2; PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.IceCubesApp.IceCubesShareExtension; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; @@ -707,7 +707,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.1; + MARKETING_VERSION = 1.0.2; PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.IceCubesApp.IceCubesShareExtension; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; diff --git a/Packages/Status/Sources/Status/Row/StatusMediaPreviewView.swift b/Packages/Status/Sources/Status/Row/StatusMediaPreviewView.swift index 2e8ccb33..5b0e9b88 100644 --- a/Packages/Status/Sources/Status/Row/StatusMediaPreviewView.swift +++ b/Packages/Status/Sources/Status/Row/StatusMediaPreviewView.swift @@ -167,13 +167,13 @@ public struct StatusMediaPreviewView: View { image .resizable() .aspectRatio(contentMode: .fit) - .frame(maxHeight: isNotifications ? imageMaxHeight : nil) + .frame(maxHeight: isNotifications || theme.statusDisplayStyle == .compact ? imageMaxHeight : nil) .cornerRadius(4) }, placeholder: { RoundedRectangle(cornerRadius: 4) .fill(Color.gray) - .frame(maxHeight: isNotifications ? imageMaxHeight : nil) + .frame(maxHeight: isNotifications || theme.statusDisplayStyle == .compact ? imageMaxHeight : nil) .shimmering() }