Skip to content

Commit 7fdc0a5

Browse files
Improvements to the message text view
1 parent 199538b commit 7fdc0a5

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
@@ -85,6 +85,7 @@ struct AttachmentTextView: View {
8585
Text(message.text)
8686
.standardPadding()
8787
.foregroundColor(textColor(for: message))
88+
.fixedSize(horizontal: false, vertical: true)
8889
Spacer()
8990
}
9091
.background(Color(backgroundColor))

Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageView.swift

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

126126
Text(message.text)
127127
.standardPadding()
128+
.fixedSize(horizontal: false, vertical: true)
128129
.foregroundColor(textColor(for: message))
129130
.font(fonts.body)
130131
}

0 commit comments

Comments
 (0)