Skip to content

Commit

Permalink
[@mantine/core] Modal: Fix content shifting in full screen modal (#2348)
Browse files Browse the repository at this point in the history
* [@mantine/core] Select: only use open/close callback when value changes

* [@mantine/core] Select: do not use early return

* [@mantine/core] Modal: full screen width to 100vw
  • Loading branch information
wes337 committed Sep 4, 2022
1 parent 4f6c566 commit 61b11ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-core/src/Modal/Modal.styles.ts
Expand Up @@ -71,7 +71,7 @@ export default createStyles(

modal: {
position: 'relative',
width: fullScreen ? undefined : theme.fn.size({ sizes, size }),
width: fullScreen ? '100vw' : theme.fn.size({ sizes, size }),
borderRadius: fullScreen ? 0 : undefined,
outline: 0,
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[7] : theme.white,
Expand Down

0 comments on commit 61b11ae

Please sign in to comment.