revert avatar size and make arrow less sharp

This commit is contained in:
Ajay Bura 2025-09-18 08:10:14 +05:30
parent 99bb85ecf4
commit 1200c6d103
4 changed files with 6 additions and 13 deletions

View file

@ -19,7 +19,7 @@ function BubbleLeftArrow({ variant }: BubbleArrowProps) {
<path <path
fillRule="evenodd" fillRule="evenodd"
clipRule="evenodd" clipRule="evenodd"
d="M9 8V0L0 0L8 8H9Z" d="M9.00004 8V0H4.82847C3.04666 0 2.15433 2.15428 3.41426 3.41421L8.00004 8H9.00004Z"
fill={color[variant].Container} fill={color[variant].Container}
/> />
</svg> </svg>
@ -34,7 +34,7 @@ type BubbleLayoutProps = {
export const BubbleLayout = as<'div', BubbleLayoutProps>( export const BubbleLayout = as<'div', BubbleLayoutProps>(
({ hideBubble, before, header, children, ...props }, ref) => ( ({ hideBubble, before, header, children, ...props }, ref) => (
<Box gap="200" {...props} ref={ref}> <Box gap="300" {...props} ref={ref}>
<Box className={css.BubbleBefore} shrink="No"> <Box className={css.BubbleBefore} shrink="No">
{before} {before}
</Box> </Box>

View file

@ -134,8 +134,7 @@ export const ModernBefore = style({
}); });
export const BubbleBefore = style({ export const BubbleBefore = style({
minWidth: toRem(24), minWidth: toRem(36),
marginLeft: config.space.S300,
}); });
export const BubbleContent = style({ export const BubbleContent = style({

View file

@ -797,7 +797,7 @@ export const Message = as<'div', MessageProps>(
<Avatar <Avatar
className={css.MessageAvatar} className={css.MessageAvatar}
as="button" as="button"
size={messageLayout === MessageLayout.Bubble ? '200' : '300'} size="300"
data-user-id={senderId} data-user-id={senderId}
onClick={onUserClick} onClick={onUserClick}
> >
@ -809,13 +809,7 @@ export const Message = as<'div', MessageProps>(
: undefined : undefined
} }
alt={senderDisplayName} alt={senderDisplayName}
renderFallback={() => ( renderFallback={() => <Icon size="200" src={Icons.User} filled />}
<Icon
size={messageLayout === MessageLayout.Bubble ? '50' : '200'}
src={Icons.User}
filled
/>
)}
/> />
</Avatar> </Avatar>
</AvatarBase> </AvatarBase>

View file

@ -25,7 +25,7 @@ export const MessageOptionsBar = style([
]); ]);
export const BubbleAvatarBase = style({ export const BubbleAvatarBase = style({
paddingTop: toRem(6), paddingTop: 0,
}); });
export const MessageAvatar = style({ export const MessageAvatar = style({