Skip to content

Commit 75611a5

Browse files
committed
Don't let dialogs run into viewport edge on mobile
1 parent 25eaf8a commit 75611a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scss/_dialog.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ $dialog-sizes: defaults(
7373
display: flex;
7474
flex-direction: column;
7575
width: var(--dialog-width);
76-
max-width: 100%;
76+
max-width: calc(100% - var(--dialog-margin) * 2);
7777
max-height: calc(100% - var(--dialog-margin) * 2);
7878
padding: 0;
7979
margin: auto;

0 commit comments

Comments
 (0)