fix: prevent X button flying to screen corners in dataset settings modal (#23788)
This commit is contained in:
parent
66232792a2
commit
d3eff9b1a3
1 changed files with 5 additions and 3 deletions
|
|
@ -69,10 +69,12 @@ const RenameDatasetModal = ({ show, dataset, onSuccess, onClose }: RenameDataset
|
||||||
isShow={show}
|
isShow={show}
|
||||||
onClose={noop}
|
onClose={noop}
|
||||||
>
|
>
|
||||||
<div className='relative pb-2 text-xl font-medium leading-[30px] text-text-primary'>{t('datasetSettings.title')}</div>
|
<div className='flex items-center justify-between pb-2'>
|
||||||
<div className='absolute right-4 top-4 cursor-pointer p-2' onClick={onClose}>
|
<div className='text-xl font-medium leading-[30px] text-text-primary'>{t('datasetSettings.title')}</div>
|
||||||
|
<div className='cursor-pointer p-2' onClick={onClose}>
|
||||||
<RiCloseLine className='h-4 w-4 text-text-tertiary' />
|
<RiCloseLine className='h-4 w-4 text-text-tertiary' />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div className={cn('flex flex-wrap items-center justify-between py-4')}>
|
<div className={cn('flex flex-wrap items-center justify-between py-4')}>
|
||||||
<div className='shrink-0 py-2 text-sm font-medium leading-[20px] text-text-primary'>
|
<div className='shrink-0 py-2 text-sm font-medium leading-[20px] text-text-primary'>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue