From 3c21783eae38d167e8407bee32a0641e61d7f4d9 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Thu, 18 Sep 2025 18:20:12 +0200 Subject: [PATCH] left corners rounded, right not yet --- bitchat/Views/ImageMessageRow.swift | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/bitchat/Views/ImageMessageRow.swift b/bitchat/Views/ImageMessageRow.swift index 19116014..45903a7d 100644 --- a/bitchat/Views/ImageMessageRow.swift +++ b/bitchat/Views/ImageMessageRow.swift @@ -22,15 +22,19 @@ struct ImageMessageRow: View { #if os(iOS) if let uiImage = UIImage(contentsOfFile: path) { VStack(alignment: .leading, spacing: 4) { - Image(uiImage: uiImage) - .resizable() - .aspectRatio(contentMode: .fit) - .frame(maxWidth: 200, maxHeight: 200) - .clipShape(RoundedRectangle(cornerRadius: 12)) - .shadow(radius: 2) + // Ensure image aligns with the same left edge as text messages + HStack(spacing: 0) { + Image(uiImage: uiImage) + .resizable() + .aspectRatio(contentMode: .fit) + .frame(maxWidth: 200, maxHeight: 200, alignment: .topLeading) + .clipShape(RoundedRectangle(cornerRadius: 12)) + Spacer(minLength: 0) + } if message.isPrivate && message.sender == viewModel.nickname, let status = message.deliveryStatus { DeliveryStatusView(status: status, colorScheme: colorScheme) + .padding(.leading, 4) } } .frame(maxWidth: .infinity, alignment: .leading)