From 62fd7bae12bd20061c4da3ff0986ebbe5b1da0ea Mon Sep 17 00:00:00 2001 From: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Date: Tue, 7 Mar 2023 15:05:20 +0900 Subject: [PATCH] Fix spoiler image content alignment (#1177) Fixed an issue where the alignment of the spoiler button and the spoiler image is split left and right when the image size is set to compact. Co-authored-by: Yusuke Arakawa --- .../Sources/Status/Row/Subviews/StatusRowMediaPreviewView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/Status/Sources/Status/Row/Subviews/StatusRowMediaPreviewView.swift b/Packages/Status/Sources/Status/Row/Subviews/StatusRowMediaPreviewView.swift index 57b8068e..f611ed4c 100644 --- a/Packages/Status/Sources/Status/Row/Subviews/StatusRowMediaPreviewView.swift +++ b/Packages/Status/Sources/Status/Row/Subviews/StatusRowMediaPreviewView.swift @@ -149,7 +149,7 @@ public struct StatusRowMediaPreviewView: View { @ViewBuilder private func makeFeaturedImagePreview(attachment: MediaAttachment) -> some View { - ZStack(alignment: .bottomTrailing) { + ZStack(alignment: .bottomLeading) { let size: CGSize = size(for: attachment) ?? .init(width: imageMaxHeight, height: imageMaxHeight) let newSize = imageSize(from: size, newWidth: availableWidth - appLayoutWidth) switch attachment.supportedType {