Skip to content

Commit

Permalink
Set Chat-bubble maxWidht to 80%
Browse files Browse the repository at this point in the history
- Also set top corner radiuses to 0, to form a comic bubble-shape
  • Loading branch information
rottabonus committed Dec 2, 2023
1 parent 60f3f4a commit 30575bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Screens/Main/Chat/MessageList/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,21 @@ const Message = ({ value: message }: MessageProps) => {
const styles = RN.StyleSheet.create({
leftBubble: {
borderRadius: 24,
borderTopLeftRadius: 0,
backgroundColor: colors.white,
alignSelf: 'flex-start',
},
rightBubble: {
borderRadius: 24,
borderTopRightRadius: 0,
backgroundColor: colors.whiteBlue,
alignSelf: 'flex-end',
},
bubble: {
marginVertical: 8,
paddingVertical: 8,
paddingHorizontal: 16,
maxWidth: '80%',
flexDirection: 'row',
flexWrap: 'wrap',
...shadow(4),
Expand Down

0 comments on commit 30575bd

Please sign in to comment.