Skip to content

Commit

Permalink
fix: set consistent spacing between mentioned people names (#2970)
Browse files Browse the repository at this point in the history
  • Loading branch information
musale authored Jan 30, 2024
1 parent 511f6ea commit 4a285e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
20 changes: 11 additions & 9 deletions packages/mgt-chat/src/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,29 +76,31 @@ const useStyles = makeStyles({
const messageThreadStyles: MessageThreadStyles = {
chatContainer: {
'& .ui-box': {
zIndex: 'unset'
},
'& p': {
display: 'inline-flex',
justifyContent: 'center'
zIndex: 'unset',
'& div[data-ui-status]': {
display: 'inline-flex',
justifyContent: 'center'
}
}
},
chatMessageContainer: {
'& p>mgt-person,msft-mention': {
display: 'inline-block',
...shorthands.marginInline('0px', '2px')
...shorthands.marginInline('0px')
},
'& .otherMention': {
color: 'var(--accent-base-color)'
color: 'var(--accent-base-color)',
...shorthands.margin('0px')
}
},
myChatMessageContainer: {
'& p>mgt-person,msft-mention': {
display: 'inline-block',
...shorthands.marginInline('0px', '2px')
...shorthands.marginInline('0px')
},
'& .otherMention': {
color: 'var(--accent-base-color)'
color: 'var(--accent-base-color)',
...shorthands.margin('0px')
}
}
};
Expand Down
1 change: 1 addition & 0 deletions packages/mgt-chat/src/utils/mentions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const renderMGTMention = (chatState: GraphChatClient) => {
</Person>
);
}
render = <>{render}&nbsp;</>;
return render;
};
};

0 comments on commit 4a285e1

Please sign in to comment.