Fix: Can not select LLM in memory page (#12219)

### What problem does this PR solve?

Fix: Can not select LLM in memory page

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-12-26 11:00:11 +08:00
committed by GitHub
parent 73db759558
commit 5fb38ecc2a
2 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,7 @@ export interface ModalProps {
cancelButtonClassName?: string;
disabled?: boolean;
style?: React.CSSProperties;
zIndex?: number;
}
export interface ModalType extends FC<ModalProps> {
show: typeof modalIns.show;
@ -63,6 +64,7 @@ const Modal: ModalType = ({
cancelButtonClassName,
disabled = false,
style,
zIndex = 50,
}) => {
const sizeClasses = {
small: 'max-w-md',
@ -172,6 +174,7 @@ const Modal: ModalType = ({
<DialogPrimitive.Overlay
className="fixed inset-0 z-[1000] bg-bg-card backdrop-blur-[1px] flex items-center justify-center p-4"
onClick={() => maskClosable && onOpenChange?.(false)}
style={{ zIndex: zIndex }}
>
<DialogPrimitive.Content
className={cn(

View File

@ -102,6 +102,7 @@ export const useShowDeleteConfirm = () => {
style: {
width: '450px',
},
zIndex: 1000,
okButtonClassName:
'bg-state-error text-white hover:bg-state-error hover:text-white',
onOk: async () => {