Skip to content

Commit 4799222

Browse files
Fixed layout issue with attachments with text
1 parent 5f9ef24 commit 4799222

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Sources/StreamChatSwiftUI/ChatChannel/MessageList/ImageAttachmentView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public struct ImageAttachmentContainer<Factory: ViewFactory>: View {
5050

5151
if !message.text.isEmpty {
5252
AttachmentTextView(message: message)
53+
.frame(width: width)
5354
}
5455
}
5556
}

Sources/StreamChatSwiftUI/ChatChannel/MessageList/VideoAttachmentView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public struct VideoAttachmentsContainer<Factory: ViewFactory>: View {
4848

4949
if !message.text.isEmpty {
5050
AttachmentTextView(message: message)
51+
.frame(width: width)
5152
}
5253
}
5354
.if(!message.text.isEmpty, transform: { view in

0 commit comments

Comments
 (0)