Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: prevent X button flying to screen corners in dataset settings modal (#23788)

lyzno1d3eff9b1a3c8
diff --git a/web/app/components/datasets/rename-modal/index.tsx b/web/app/components/datasets/rename-modal/index.tsx
index c497dbb9571..0104b4ac2af 100644
--- a/web/app/components/datasets/rename-modal/index.tsx
+++ b/web/app/components/datasets/rename-modal/index.tsx
@@ -69,9 +69,11 @@ const RenameDatasetModal = ({ show, dataset, onSuccess, onClose }: RenameDataset
isShow={show}
onClose={noop}
>
- <div className='relative pb-2 text-xl font-medium leading-[30px] text-text-primary'>{t('datasetSettings.title')}</div>
- <div className='absolute right-4 top-4 cursor-pointer p-2' onClick={onClose}>
- <RiCloseLine className='h-4 w-4 text-text-tertiary' />
+ <div className='flex items-center justify-between pb-2'>
+ <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' />
+ </div>
</div>
<div>
<div className={cn('flex flex-wrap items-center justify-between py-4')}>