fix bubble layout overflow

This commit is contained in:
7w1 committed 2026-03-12 16:44:06 -05:00
1 parent a6230868c2
commit 91febe0afe
3 files changed
+13 -2

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
default: patch
---
Fix bubble layout messages overflowing off the screen with embeds/images.
+1 -1
View File
@@ -70,7 +70,7 @@ export const BubbleLayout = as<'div', BubbleLayoutProps>(
{hideBubble ? (
children
) : (
<Box>
<Box className={css.BubbleWrapper}>
<Box
className={
hideBubble
@@ -152,8 +152,14 @@ export const BubbleBefore = style({
minWidth: toRem(36),
});
export const BubbleWrapper = style({
maxWidth: '100%',
minWidth: 0,
});
export const BubbleContent = style({
maxWidth: toRem(800),
maxWidth: `min(${toRem(800)}, 100%)`,
minWidth: 0,
padding: config.space.S200,
backgroundColor: color.SurfaceVariant.Container,
color: color.SurfaceVariant.OnContainer,