File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed
Sources/StreamChatSwiftUI/ChatChannel/MessageList Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -26,19 +26,25 @@ public struct ImageAttachmentContainer: View {
26
26
)
27
27
}
28
28
29
- ImageAttachmentView (
30
- message: message,
31
- width: width
32
- )
33
-
34
- if !message. text. isEmpty {
35
- HStack {
36
- Text ( message. text)
37
- . standardPadding ( )
38
- Spacer ( )
29
+ VStack (
30
+ alignment: message. alignmentInBubble,
31
+ spacing: 0
32
+ ) {
33
+ ImageAttachmentView (
34
+ message: message,
35
+ width: width
36
+ )
37
+
38
+ if !message. text. isEmpty {
39
+ HStack {
40
+ Text ( message. text)
41
+ . standardPadding ( )
42
+ Spacer ( )
43
+ }
44
+ . background ( Color ( backgroundColor) )
39
45
}
40
- . background ( Color ( backgroundColor) )
41
46
}
47
+ . clipped ( )
42
48
}
43
49
. messageBubble ( for: message, isFirst: isFirst)
44
50
}
You can’t perform that action at this time.
0 commit comments