We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42a70f commit 0884e47Copy full SHA for 0884e47
Sources/StreamChatSwiftUI/ChatChannel/MessageList/LinkAttachmentView.swift
@@ -35,14 +35,15 @@ public struct LinkAttachmentContainer<Factory: ViewFactory>: View {
35
)
36
}
37
38
- let size = message.text.frameSize(maxWidth: width - 2 * padding)
+ let availableWidth = width - 4 * padding
39
+ let size = message.text.frameSize(maxWidth: availableWidth)
40
LinkTextView(
41
text: message.text,
- width: width - 2 * padding,
42
+ width: availableWidth,
43
textColor: UIColor(textColor(for: message))
44
45
+ .frame(width: availableWidth, height: size.height)
46
.standardPadding()
- .frame(width: width, height: size.height + 2 * padding)
47
48
if !message.linkAttachments.isEmpty {
49
LinkAttachmentView(
0 commit comments