Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 28d9363

Browse files
Hannes BergenfalkTigge
authored andcommitted
fix(dialog): make dialogs fit on small screens
Adds max-width to dialogs so that they doe not overflow if viewed on a small screen, such as on a moblie device
1 parent 67bb9e1 commit 28d9363

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/src/Dialog/BaseDialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const DIALOG_WIDTH = {
3333
const Container = styled.div<{ readonly width: DialogWidth }>`
3434
max-height: 80vh;
3535
width: ${({ width }) => DIALOG_WIDTH[width]};
36+
max-width: 100vw;
3637
margin: auto;
3738
box-shadow: ${({ theme }) => theme.shadow.dialog};
3839
display: flex;

0 commit comments

Comments
 (0)