Skip to content

Commit

Permalink
fix(theme): set the min-height of base height to 100dvh where size eq…
Browse files Browse the repository at this point in the history
…uals "full" (#2684)

* fix(modal): set the min-height of base height to 100dvh where size equals "full"

* chore(changeset): add changeset

---------

Co-authored-by: WK Wong <[email protected]>
  • Loading branch information
HydenLiu and wingkwong authored Sep 12, 2024
1 parent 54bd9cd commit 142f394
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nervous-mirrors-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

set the min-height of base height to 100dvh where size equals `full` (#2681)
2 changes: 1 addition & 1 deletion packages/core/theme/src/components/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const modal = tv({
base: "max-w-5xl",
},
full: {
base: "my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] !rounded-none",
base: "my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none",
},
},
radius: {
Expand Down

0 comments on commit 142f394

Please sign in to comment.