fix: provider delete api key modal z-index (#1416)

This commit is contained in:
zxhlyh 2023-10-26 10:35:03 +08:00 committed by GitHub
parent 985253197f
commit fc4c03640d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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> = ({
showOperateCancel = true, showOperateCancel = true,
confirmBtnClassName, confirmBtnClassName,
confirmText, confirmText,
confirmWrapperClassName,
}) => { }) => {
const { t } = useTranslation() const { t } = useTranslation()
@ -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' />

View File

@ -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>
) )