mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-24 14:58:07 +00:00
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 <nekolaboratory@users.noreply.github.com>
This commit is contained in:
parent
eaaa8cd1c9
commit
62fd7bae12
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue