Skip to content

Commit 77e3e21

Browse files
Fixed bug with horizontal paddings config
1 parent 9360e48 commit 77e3e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageContainerView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public struct MessageContainerView<Factory: ViewFactory>: View {
225225
}
226226

227227
private var contentWidth: CGFloat {
228-
let padding: CGFloat = 8
228+
let padding: CGFloat = messageListConfig.messagePaddings.horizontal
229229
let minimumWidth: CGFloat = 240
230230
let available = max(minimumWidth, (width ?? 0) - spacerWidth) - 2 * padding
231231
let avatarSize: CGFloat = CGSize.messageAvatarSize.width + padding

0 commit comments

Comments
 (0)