modal overflow

This commit is contained in:
saml33 2024-05-08 14:50:10 +10:00
parent d8967dcd71
commit 40670f3cfb
2 changed files with 2 additions and 6 deletions

View File

@ -328,11 +328,7 @@ const DashboardSuggestedValues = ({
)
return (
<Modal
panelClassNames="!max-w-[800px] !max-h-[700px] overflow-auto"
isOpen={isOpen}
onClose={onClose}
>
<Modal panelClassNames="!max-w-[800px]" isOpen={isOpen} onClose={onClose}>
<h3 className="mb-6">
<span>
{bank.name} - Suggested tier: {PRESETS[suggestedTierKey].preset_name}{' '}

View File

@ -62,7 +62,7 @@ function Modal({
} h-full w-full bg-th-bkg-1 font-body ${
fullScreen
? ''
: 'p-4 sm:h-auto sm:max-w-md sm:rounded-lg sm:border sm:border-th-bkg-3 sm:p-6'
: 'thin-scroll max-h-[calc(100vh-48px)] overflow-y-auto p-4 sm:h-auto sm:max-w-md sm:rounded-lg sm:border sm:border-th-bkg-3 sm:p-6'
} relative ${panelClassNames}`}
>
<div>{children}</div>