Merge pull request #2494 from yougotwill/hotfix_message_reactions_width

Hotfix Message Reactions Width
pull/2495/head
Audric Ackermann 3 years ago committed by GitHub
commit 336baf6528
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,8 +21,8 @@ const StyledMessageReactionsContainer = styled(Flex)<{ x: number; y: number }>`
}
`;
export const StyledMessageReactions = styled(Flex)<{ inModal: boolean }>`
${props => (props.inModal ? '' : 'max-width: 320px;')}
export const StyledMessageReactions = styled(Flex)<{ fullWidth: boolean }>`
${props => (props.fullWidth ? '' : 'max-width: 640px;')}
`;
const StyledReactionOverflow = styled.button`
@ -63,7 +63,7 @@ const Reactions = (props: ReactionsProps): ReactElement => {
container={true}
flexWrap={inModal ? 'nowrap' : 'wrap'}
alignItems={'center'}
inModal={inModal}
fullWidth={inModal}
>
{reactions.map(([emoji, _]) => (
<Reaction key={`${messageId}-${emoji}`} emoji={emoji} {...props} />
@ -83,7 +83,7 @@ const CompressedReactions = (props: ExpandReactionsProps): ReactElement => {
container={true}
flexWrap={inModal ? 'nowrap' : 'wrap'}
alignItems={'center'}
inModal={inModal}
fullWidth={true}
>
{reactions.slice(0, 4).map(([emoji, _]) => (
<Reaction key={`${messageId}-${emoji}`} emoji={emoji} {...props} />

@ -55,6 +55,7 @@ const StyledReactionBar = styled(Flex)`
span:nth-child(1) {
margin: 0 8px;
color: var(--color-text);
white-space: nowrap;
}
span:nth-child(2) {

Loading…
Cancel
Save