Skip to content

Commit 336baf6

Browse files
authored
Merge pull request oxen-io#2494 from yougotwill/hotfix_message_reactions_width
Hotfix Message Reactions Width
2 parents 77bf2b1 + c076c5b commit 336baf6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ts/components/conversation/message/message-content/MessageReactions.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const StyledMessageReactionsContainer = styled(Flex)<{ x: number; y: number }>`
2121
}
2222
`;
2323

24-
export const StyledMessageReactions = styled(Flex)<{ inModal: boolean }>`
25-
${props => (props.inModal ? '' : 'max-width: 320px;')}
24+
export const StyledMessageReactions = styled(Flex)<{ fullWidth: boolean }>`
25+
${props => (props.fullWidth ? '' : 'max-width: 640px;')}
2626
`;
2727

2828
const StyledReactionOverflow = styled.button`
@@ -63,7 +63,7 @@ const Reactions = (props: ReactionsProps): ReactElement => {
6363
container={true}
6464
flexWrap={inModal ? 'nowrap' : 'wrap'}
6565
alignItems={'center'}
66-
inModal={inModal}
66+
fullWidth={inModal}
6767
>
6868
{reactions.map(([emoji, _]) => (
6969
<Reaction key={`${messageId}-${emoji}`} emoji={emoji} {...props} />
@@ -83,7 +83,7 @@ const CompressedReactions = (props: ExpandReactionsProps): ReactElement => {
8383
container={true}
8484
flexWrap={inModal ? 'nowrap' : 'wrap'}
8585
alignItems={'center'}
86-
inModal={inModal}
86+
fullWidth={true}
8787
>
8888
{reactions.slice(0, 4).map(([emoji, _]) => (
8989
<Reaction key={`${messageId}-${emoji}`} emoji={emoji} {...props} />

ts/components/dialog/ReactListModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const StyledReactionBar = styled(Flex)`
5555
span:nth-child(1) {
5656
margin: 0 8px;
5757
color: var(--color-text);
58+
white-space: nowrap;
5859
}
5960
6061
span:nth-child(2) {

0 commit comments

Comments
 (0)