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: modal z-index and cleanup (#4978)

Charles Zhou1ccba85c91e8
diff --git a/web/app/components/app/app-publisher/index.tsx b/web/app/components/app/app-publisher/index.tsx
index 7e4c584257f..da7f9b56a28 100644
--- a/web/app/components/app/app-publisher/index.tsx
+++ b/web/app/components/app/app-publisher/index.tsx
@@ -235,7 +235,6 @@ const AppPublisher = ({
onClose={() => setEmbeddingModalOpen(false)}
appBaseUrl={appBaseURL}
accessToken={accessToken}
- className='z-50'
/>
</PortalToFollowElem >
)
diff --git a/web/app/components/app/configuration/dataset-config/params-config/index.tsx b/web/app/components/app/configuration/dataset-config/params-config/index.tsx
index a7b6a08e7a3..9d9eac2a66e 100644
--- a/web/app/components/app/configuration/dataset-config/params-config/index.tsx
+++ b/web/app/components/app/configuration/dataset-config/params-config/index.tsx
@@ -84,7 +84,6 @@ const ParamsConfig: FC = () => {
setOpen(false)
}}
className='sm:min-w-[528px]'
- wrapperClassName='z-50'
title={t('appDebug.datasetConfig.settingTitle')}
>
<ConfigContent
diff --git a/web/app/components/app/configuration/toolbox/annotation/config-param-modal.tsx b/web/app/components/app/configuration/toolbox/annotation/config-param-modal.tsx
index c06c8511497..ab93ce6f854 100644
--- a/web/app/components/app/configuration/toolbox/annotation/config-param-modal.tsx
+++ b/web/app/components/app/configuration/toolbox/annotation/config-param-modal.tsx
@@ -78,7 +78,6 @@ const ConfigParamModal: FC<Props> = ({
isShow={isShow}
onClose={onHide}
className='!p-8 !pb-6 !mt-14 !max-w-none !w-[640px]'
- wrapperClassName='!z-50'
>
<div className='mb-2 text-xl font-semibold text-[#1D2939]'>
{t(`appAnnotation.initSetup.${isInit ? 'title' : 'configTitle'}`)}
diff --git a/web/app/components/base/drawer/index.tsx b/web/app/components/base/drawer/index.tsx
index 467c8253b93..de46ac69f85 100644
--- a/web/app/components/base/drawer/index.tsx
+++ b/web/app/components/base/drawer/index.tsx
@@ -14,7 +14,6 @@ export type IDrawerProps = {
mask?: boolean
positionCenter?: boolean
isOpen: boolean
- // closable: boolean
showClose?: boolean
clickOutsideNotOpen?: boolean
onClose: () => void
diff --git a/web/app/components/base/modal/delete-confirm-modal/index.tsx b/web/app/components/base/modal/delete-confirm-modal/index.tsx
index f2c5a303367..5f492bedfce 100644
--- a/web/app/components/base/modal/delete-confirm-modal/index.tsx
+++ b/web/app/components/base/modal/delete-confirm-modal/index.tsx
@@ -2,7 +2,6 @@
import type { FC } from 'react'
import React from 'react'
import { useTranslation } from 'react-i18next'
-import cn from 'classnames'
import s from './style.module.css'
import Modal from '@/app/components/base/modal'
import Button from '@/app/components/base/button'
@@ -31,8 +30,7 @@ const DeleteConfirmModal: FC<Props> = ({
<Modal
isShow={isShow}
onClose={onHide}
- wrapperClassName='z-50'
- className={cn(s.delModal, 'z-50')}
+ className={s.delModal}
closable
>
<div onClick={(e) => {
diff --git a/web/app/components/base/modal/index.css b/web/app/components/base/modal/index.css
index b1b4648be62..799b375168d 100644
--- a/web/app/components/base/modal/index.css
+++ b/web/app/components/base/modal/index.css
@@ -1,5 +1,5 @@
.modal-dialog {
- @apply relative z-10;
+ @apply relative z-50;
}
.modal-panel {
diff --git a/web/app/components/datasets/documents/rename-modal.tsx b/web/app/components/datasets/documents/rename-modal.tsx
index a47d47e4b3f..545c7862588 100644
--- a/web/app/components/datasets/documents/rename-modal.tsx
+++ b/web/app/components/datasets/documents/rename-modal.tsx
@@ -57,7 +57,6 @@ const RenameModal: FC<Props> = ({
title={t('datasetDocuments.list.table.rename')}
isShow
onClose={onClose}
- wrapperClassName='!z-50'
>
<div className={'mt-6 font-medium text-sm leading-[21px] text-gray-900'}>{t('datasetDocuments.list.table.name')}</div>
<input className={'mt-2 w-full rounded-lg h-10 box-border px-3 text-sm leading-10 bg-gray-100'}
diff --git a/web/app/components/share/chat/sidebar/rename-modal/index.tsx b/web/app/components/share/chat/sidebar/rename-modal/index.tsx
index 346bf74d3e7..34ca4e76316 100644
--- a/web/app/components/share/chat/sidebar/rename-modal/index.tsx
+++ b/web/app/components/share/chat/sidebar/rename-modal/index.tsx
@@ -28,7 +28,6 @@ const RenameModal: FC<IRenameModalProps> = ({
title={t('common.chat.renameConversation')}
isShow={isShow}
onClose={onClose}
- wrapperClassName='!z-50'
>
<div className={'mt-6 font-medium text-sm leading-[21px] text-gray-900'}>{t('common.chat.conversationName')}</div>
<input className={'mt-2 w-full rounded-lg h-10 box-border px-3 text-sm leading-10 bg-gray-100'}
diff --git a/web/app/components/workflow/nodes/http/components/authorization/index.tsx b/web/app/components/workflow/nodes/http/components/authorization/index.tsx
index 050ebbcb589..f0c65f17c3c 100644
--- a/web/app/components/workflow/nodes/http/components/authorization/index.tsx
+++ b/web/app/components/workflow/nodes/http/components/authorization/index.tsx
@@ -87,7 +87,6 @@ const Authorization: FC<Props> = ({
return (
<Modal
title={t(`${i18nPrefix}.authorization`)}
- wrapperClassName='z-50 w-400'
isShow={isShow}
onClose={onHide}
>