Skip to content

Commit

Permalink
fix(website): add scroll overflow (pmndrs#2436)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandren authored Mar 4, 2024
1 parent 3ca1d43 commit c974d15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions website/src/components/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ export const Modal = ({ isOpen, onClose, children, ...rest }) => {
className="z-100 fixed top-0 right-0 bottom-0 h-full w-8 bg-white dark:bg-gray-950"
aria-hidden="true"
/>
<div className="fixed inset-0 z-[1000] flex justify-center bg-black/50 p-8 backdrop-blur sm:p-12 2xl:p-32">
<div className="fixed inset-0 h-full w-full z-[1000] flex justify-center bg-black/50 p-8 backdrop-blur sm:p-12 2xl:p-32">
<RemoveScroll className="w-full max-w-3xl">
<Dialog.Panel className="z-[1001] min-w-full">{children}</Dialog.Panel>
<Dialog.Panel className="z-[1001] min-w-full overflow-y-auto max-h-full">
{children}
</Dialog.Panel>
</RemoveScroll>
</div>
</Dialog>
Expand Down

0 comments on commit c974d15

Please sign in to comment.