mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 16:25:21 +00:00
left corners rounded, right not yet
This commit is contained in:
@@ -22,15 +22,19 @@ struct ImageMessageRow: View {
|
|||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
if let uiImage = UIImage(contentsOfFile: path) {
|
if let uiImage = UIImage(contentsOfFile: path) {
|
||||||
VStack(alignment: .leading, spacing: 4) {
|
VStack(alignment: .leading, spacing: 4) {
|
||||||
Image(uiImage: uiImage)
|
// Ensure image aligns with the same left edge as text messages
|
||||||
.resizable()
|
HStack(spacing: 0) {
|
||||||
.aspectRatio(contentMode: .fit)
|
Image(uiImage: uiImage)
|
||||||
.frame(maxWidth: 200, maxHeight: 200)
|
.resizable()
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 12))
|
.aspectRatio(contentMode: .fit)
|
||||||
.shadow(radius: 2)
|
.frame(maxWidth: 200, maxHeight: 200, alignment: .topLeading)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 12))
|
||||||
|
Spacer(minLength: 0)
|
||||||
|
}
|
||||||
if message.isPrivate && message.sender == viewModel.nickname,
|
if message.isPrivate && message.sender == viewModel.nickname,
|
||||||
let status = message.deliveryStatus {
|
let status = message.deliveryStatus {
|
||||||
DeliveryStatusView(status: status, colorScheme: colorScheme)
|
DeliveryStatusView(status: status, colorScheme: colorScheme)
|
||||||
|
.padding(.leading, 4)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
|||||||
Reference in New Issue
Block a user