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
fillRule="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}
/>
</svg>
@ -34,7 +34,7 @@ type BubbleLayoutProps = {
export const BubbleLayout = as<'div', BubbleLayoutProps>(
({ hideBubble, before, header, children, ...props }, ref) => (
<Box gap="200" {...props} ref={ref}>
<Box gap="300" {...props} ref={ref}>
<Box className={css.BubbleBefore} shrink="No">
{before}
</Box>

View file

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

View file

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

View file

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