Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
fc4c0364
Unverified
Commit
fc4c0364
authored
Oct 26, 2023
by
zxhlyh
Committed by
GitHub
Oct 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: provider delete api key modal z-index (#1416)
parent
98525319
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
common.tsx
web/app/components/base/confirm/common.tsx
+3
-1
index.tsx
...pp/components/header/account-setting/model-page/index.tsx
+1
-0
No files found.
web/app/components/base/confirm/common.tsx
View file @
fc4c0364
...
@@ -19,6 +19,7 @@ export type ConfirmCommonProps = {
...
@@ -19,6 +19,7 @@ export type ConfirmCommonProps = {
showOperateCancel
?:
boolean
showOperateCancel
?:
boolean
confirmBtnClassName
?:
string
confirmBtnClassName
?:
string
confirmText
?:
string
confirmText
?:
string
confirmWrapperClassName
?:
string
}
}
const
ConfirmCommon
:
FC
<
ConfirmCommonProps
>
=
({
const
ConfirmCommon
:
FC
<
ConfirmCommonProps
>
=
({
...
@@ -32,6 +33,7 @@ const ConfirmCommon: FC<ConfirmCommonProps> = ({
...
@@ -32,6 +33,7 @@ const ConfirmCommon: FC<ConfirmCommonProps> = ({
showOperateCancel
=
true
,
showOperateCancel
=
true
,
confirmBtnClassName
,
confirmBtnClassName
,
confirmText
,
confirmText
,
confirmWrapperClassName
,
})
=>
{
})
=>
{
const
{
t
}
=
useTranslation
()
const
{
t
}
=
useTranslation
()
...
@@ -47,7 +49,7 @@ const ConfirmCommon: FC<ConfirmCommonProps> = ({
...
@@ -47,7 +49,7 @@ const ConfirmCommon: FC<ConfirmCommonProps> = ({
}
}
return
(
return
(
<
Modal
isShow=
{
isShow
}
onClose=
{
()
=>
{}
}
className=
'!w-[480px] !max-w-[480px] !p-0 !rounded-2xl'
>
<
Modal
isShow=
{
isShow
}
onClose=
{
()
=>
{}
}
className=
'!w-[480px] !max-w-[480px] !p-0 !rounded-2xl'
wrapperClassName=
{
confirmWrapperClassName
}
>
<
div
className=
{
cn
(
s
[
`wrapper-${type}`
],
'relative p-8'
)
}
>
<
div
className=
{
cn
(
s
[
`wrapper-${type}`
],
'relative p-8'
)
}
>
<
div
className=
'flex items-center justify-center absolute top-4 right-4 w-8 h-8 cursor-pointer'
onClick=
{
onCancel
}
>
<
div
className=
'flex items-center justify-center absolute top-4 right-4 w-8 h-8 cursor-pointer'
onClick=
{
onCancel
}
>
<
XClose
className=
'w-4 h-4 text-gray-500'
/>
<
XClose
className=
'w-4 h-4 text-gray-500'
/>
...
...
web/app/components/header/account-setting/model-page/index.tsx
View file @
fc4c0364
...
@@ -347,6 +347,7 @@ const ModelPage = () => {
...
@@ -347,6 +347,7 @@ const ModelPage = () => {
title=
{
deleteModel
?.
model_name
||
''
}
title=
{
deleteModel
?.
model_name
||
''
}
desc=
{
t
(
'common.modelProvider.item.deleteDesc'
,
{
modelName
:
deleteModel
?.
model_name
})
||
''
}
desc=
{
t
(
'common.modelProvider.item.deleteDesc'
,
{
modelName
:
deleteModel
?.
model_name
})
||
''
}
onConfirm=
{
handleDeleteModel
}
onConfirm=
{
handleDeleteModel
}
confirmWrapperClassName=
'!z-30'
/>
/>
</
div
>
</
div
>
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment