Skip to content

Commit

Permalink
fix(modal): double scrollbar in inside scrollbehaviour (#3495)
Browse files Browse the repository at this point in the history
* fix(modal): double scrollbar in inside scrollbehaviour

* chore(changeset): update changeset message and add issue number

---------

Co-authored-by: WK Wong <[email protected]>
  • Loading branch information
awesome-pro and wingkwong authored Jul 18, 2024
1 parent 7d61cf3 commit 8b19307
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/seven-onions-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

fixed the issue of double scrollbar in modal with inside `scrollBehavior` (#3942)
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 @@ -157,7 +157,7 @@ const modal = tv({
base: "overflow-y-hidden",
},
inside: {
base: "max-h-[calc(100%_-_7.5rem)]",
base: "max-h-[calc(100%_-_8rem)]",
body: "overflow-y-auto",
},
outside: {
Expand Down

0 comments on commit 8b19307

Please sign in to comment.