Skip to content

Commit b5becda

Browse files
authored
Merge pull request #526 from GetStream/vishal/style-fix
Make MessageContent to occupy parent width
2 parents 7739142 + e31b4d4 commit b5becda

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/Message/MessageSimple/MessageContent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ export const MessageContentWithContext = <
188188
errorIconContainer,
189189
replyBorder,
190190
replyContainer,
191+
wrapper,
191192
},
192193
reactionList: { radius, reactionSize },
193194
},
@@ -286,7 +287,7 @@ export const MessageContentWithContext = <
286287
testID='message-header'
287288
/>
288289
)}
289-
<View onLayout={onLayout}>
290+
<View onLayout={onLayout} style={wrapper}>
290291
{hasThreadReplies && !threadList && repliesEnabled && !noBorder && (
291292
<View
292293
style={[

src/contexts/themeContext/utils/theme.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ export type Theme = {
374374
textContainer: ViewStyle & {
375375
onlyEmojiMarkdown: MarkdownStyle;
376376
};
377+
wrapper: ViewStyle;
377378
};
378379
file: {
379380
container: ViewStyle;
@@ -834,6 +835,7 @@ export const defaultTheme: Theme = {
834835
textContainer: {
835836
onlyEmojiMarkdown: { text: { fontSize: 50 } },
836837
},
838+
wrapper: {},
837839
},
838840
file: {
839841
container: {},

0 commit comments

Comments
 (0)