Skip to content

Commit 548f252

Browse files
committed
fix: message content inner container style overflow issue
1 parent f8e37f3 commit 548f252

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package/src/components/Message/MessageSimple/MessageContent.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const styles = StyleSheet.create({
3838
borderTopLeftRadius: 16,
3939
borderTopRightRadius: 16,
4040
borderWidth: 1,
41+
overflow: 'hidden',
4142
},
4243
leftAlignContent: {
4344
justifyContent: 'flex-start',
@@ -154,6 +155,7 @@ const MessageContentWithContext = <
154155
borderRadiusS,
155156
borderTopLeftRadius,
156157
borderTopRightRadius,
158+
...container
157159
},
158160
containerInner,
159161
replyBorder,
@@ -251,7 +253,7 @@ const MessageContentWithContext = <
251253
});
252254
}
253255
}}
254-
style={({ pressed }) => ({ opacity: pressed ? 0.5 : 1 })}
256+
style={({ pressed }) => [{ opacity: pressed ? 0.5 : 1 }, container]}
255257
{...additionalPressableProps}
256258
>
257259
<View onLayout={onLayout} style={wrapper}>

0 commit comments

Comments
 (0)