fix: fixed modal classes
This commit is contained in:
parent
e44b1b1094
commit
16cd8dca4d
@ -74,12 +74,7 @@ export default function AccountSummary(props: Props) {
|
|||||||
|
|
||||||
if (!props.account) return null
|
if (!props.account) return null
|
||||||
return (
|
return (
|
||||||
<div
|
<div className='h-[546px] max-w-screen overflow-y-scroll scrollbar-hide w-93.5'>
|
||||||
className={classNames(
|
|
||||||
'h-[546px] min-w-92.5 basis-92.5 max-w-screen overflow-y-scroll scrollbar-hide',
|
|
||||||
'w-[374px]',
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<Card className='mb-4 h-min min-w-fit bg-white/10' contentClassName='flex'>
|
<Card className='mb-4 h-min min-w-fit bg-white/10' contentClassName='flex'>
|
||||||
<Item label='Net worth' classes='flex-1'>
|
<Item label='Net worth' classes='flex-1'>
|
||||||
<DisplayCurrency
|
<DisplayCurrency
|
||||||
|
@ -10,6 +10,7 @@ import useStore from 'store'
|
|||||||
interface Props extends ModalProps {
|
interface Props extends ModalProps {
|
||||||
account?: Account
|
account?: Account
|
||||||
isContentCard?: boolean
|
isContentCard?: boolean
|
||||||
|
subHeader?: React.ReactNode
|
||||||
}
|
}
|
||||||
|
|
||||||
function modalContent(content: React.ReactNode, isContentCard?: boolean, account?: Account) {
|
function modalContent(content: React.ReactNode, isContentCard?: boolean, account?: Account) {
|
||||||
@ -23,7 +24,7 @@ function modalContent(content: React.ReactNode, isContentCard?: boolean, account
|
|||||||
if (isContentCard)
|
if (isContentCard)
|
||||||
return (
|
return (
|
||||||
<Card
|
<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]'
|
contentClassName='gap-6 flex flex-col justify-between h-full min-h-[380px]'
|
||||||
>
|
>
|
||||||
{content}
|
{content}
|
||||||
@ -44,6 +45,7 @@ export default function ModalContentWithSummary(props: Props) {
|
|||||||
)}
|
)}
|
||||||
contentClassName={classNames('flex items-start flex-1 gap-6 p-6', props.contentClassName)}
|
contentClassName={classNames('flex items-start flex-1 gap-6 p-6', props.contentClassName)}
|
||||||
>
|
>
|
||||||
|
{props.subHeader && props.subHeader}
|
||||||
{modalContent(props.content, props.isContentCard, props.account)}
|
{modalContent(props.content, props.isContentCard, props.account)}
|
||||||
{props.account && <AccountSummary account={updatedAccount || props.account} />}
|
{props.account && <AccountSummary account={updatedAccount || props.account} />}
|
||||||
</Modal>
|
</Modal>
|
||||||
|
@ -258,8 +258,10 @@ module.exports = {
|
|||||||
60: '240px',
|
60: '240px',
|
||||||
90: '360px',
|
90: '360px',
|
||||||
92.5: '370px',
|
92.5: '370px',
|
||||||
|
93.5: '374px',
|
||||||
100: '400px',
|
100: '400px',
|
||||||
110: '440px',
|
110: '440px',
|
||||||
|
112: '448px',
|
||||||
120: '480px',
|
120: '480px',
|
||||||
140: '560px',
|
140: '560px',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user