Skip to content
Snippets Groups Projects
Unverified Commit 5688ff6c authored by Swapnil Bankar's avatar Swapnil Bankar Committed by GitHub
Browse files

fix: Misaligned alignment of prompt when hover on user / room name in room...

fix: Misaligned alignment of prompt when hover on user / room name in room information and user information section (#28627)

Co-authored-by: default avatarHugo Costa <hugocarreiracosta@gmail.com>
Co-authored-by: default avatarGuilherme Gazzo <guilhermegazzo@gmail.com>
parent f5507ffd
No related branches found
No related tags found
No related merge requests found
...@@ -10,9 +10,9 @@ type InfoPanelTitleProps = { ...@@ -10,9 +10,9 @@ type InfoPanelTitleProps = {
const isValidIcon = (icon: ReactNode): icon is ComponentProps<typeof Icon>['name'] => typeof icon === 'string'; const isValidIcon = (icon: ReactNode): icon is ComponentProps<typeof Icon>['name'] => typeof icon === 'string';
const InfoPanelTitle: FC<InfoPanelTitleProps> = ({ title, icon }) => ( const InfoPanelTitle: FC<InfoPanelTitleProps> = ({ title, icon }) => (
<Box display='flex' title={title} flexShrink={0} alignItems='center' fontScale='h4' color='default' withTruncatedText> <Box display='flex' flexShrink={0} alignItems='center' fontScale='h4' color='default' withTruncatedText>
{isValidIcon(icon) ? <Icon name={icon} size='x22' /> : icon} {isValidIcon(icon) ? <Icon name={icon} size='x22' /> : icon}
<Box mis='x8' flexGrow={1} withTruncatedText> <Box mis='x8' withTruncatedText title={title}>
{title} {title}
</Box> </Box>
</Box> </Box>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment