Skip to content

Commit ad2f1d7

Browse files
committed
update Modal component styles for full size dialog
1 parent ba50c04 commit ad2f1d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/@chakra-ui/components/Modal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ export const Modal = defineMultiStyleConfig({
5757
my: { base: "4", md: props.isCentered ? "auto" : "4" },
5858
mx: "4",
5959
minH: {
60-
base: "100vh",
60+
base: "calc(100vh - 2rem)",
6161
md: "min(100vh, 792px)",
6262
},
6363
maxW: {
64-
base: "100vw",
64+
base: "calc(100vw - 2rem)",
6565
md: "min(100vw, 1000px)",
6666
},
6767
},

0 commit comments

Comments
 (0)