move message header outside bubble

This commit is contained in:
Ajay Bura 2025-09-18 18:45:47 +05:30
parent 6c869e016f
commit f11911d64c

View file

@ -38,6 +38,9 @@ export const BubbleLayout = as<'div', BubbleLayoutProps>(
<Box className={css.BubbleBefore} shrink="No">
{before}
</Box>
<Box grow="Yes" direction="Column">
{header}
<Box>
<Box
className={
hideBubble
@ -45,12 +48,12 @@ export const BubbleLayout = as<'div', BubbleLayoutProps>(
: classNames(css.BubbleContent, before ? css.BubbleContentArrowLeft : undefined)
}
direction="Column"
grow={hideBubble ? 'Yes' : undefined}
>
{!hideBubble && before ? <BubbleLeftArrow variant="SurfaceVariant" /> : null}
{header}
{children}
</Box>
</Box>
</Box>
</Box>
)
);