fix bubble layout overflow
This commit is contained in:
3 files changed
+13
-2
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
default: patch
|
||||
---
|
||||
|
||||
Fix bubble layout messages overflowing off the screen with embeds/images.
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user