fix: fixed modal classes

This commit is contained in:
Linkie Link 2023-11-14 11:36:26 +01:00
parent e44b1b1094
commit 16cd8dca4d
No known key found for this signature in database
GPG Key ID: 5318B0F2564D38EA
3 changed files with 6 additions and 7 deletions

View File

@ -74,12 +74,7 @@ export default function AccountSummary(props: Props) {
if (!props.account) return null
return (
<div
className={classNames(
'h-[546px] min-w-92.5 basis-92.5 max-w-screen overflow-y-scroll scrollbar-hide',
'w-[374px]',
)}
>
<div className='h-[546px] max-w-screen overflow-y-scroll scrollbar-hide w-93.5'>
<Card className='mb-4 h-min min-w-fit bg-white/10' contentClassName='flex'>
<Item label='Net worth' classes='flex-1'>
<DisplayCurrency

View File

@ -10,6 +10,7 @@ import useStore from 'store'
interface Props extends ModalProps {
account?: Account
isContentCard?: boolean
subHeader?: React.ReactNode
}
function modalContent(content: React.ReactNode, isContentCard?: boolean, account?: Account) {
@ -23,7 +24,7 @@ function modalContent(content: React.ReactNode, isContentCard?: boolean, account
if (isContentCard)
return (
<Card
className={classNames('flex p-4 bg-white/5', 'lg:w-[448px]')}
className='flex p-4 bg-white/5 lg:w-112'
contentClassName='gap-6 flex flex-col justify-between h-full min-h-[380px]'
>
{content}
@ -44,6 +45,7 @@ export default function ModalContentWithSummary(props: Props) {
)}
contentClassName={classNames('flex items-start flex-1 gap-6 p-6', props.contentClassName)}
>
{props.subHeader && props.subHeader}
{modalContent(props.content, props.isContentCard, props.account)}
{props.account && <AccountSummary account={updatedAccount || props.account} />}
</Modal>

View File

@ -258,8 +258,10 @@ module.exports = {
60: '240px',
90: '360px',
92.5: '370px',
93.5: '374px',
100: '400px',
110: '440px',
112: '448px',
120: '480px',
140: '560px',
},