mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-01 01:25:32 +08:00
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:
@ -31,6 +31,7 @@ export interface ModalProps {
|
|||||||
cancelButtonClassName?: string;
|
cancelButtonClassName?: string;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
|
zIndex?: number;
|
||||||
}
|
}
|
||||||
export interface ModalType extends FC<ModalProps> {
|
export interface ModalType extends FC<ModalProps> {
|
||||||
show: typeof modalIns.show;
|
show: typeof modalIns.show;
|
||||||
@ -63,6 +64,7 @@ const Modal: ModalType = ({
|
|||||||
cancelButtonClassName,
|
cancelButtonClassName,
|
||||||
disabled = false,
|
disabled = false,
|
||||||
style,
|
style,
|
||||||
|
zIndex = 50,
|
||||||
}) => {
|
}) => {
|
||||||
const sizeClasses = {
|
const sizeClasses = {
|
||||||
small: 'max-w-md',
|
small: 'max-w-md',
|
||||||
@ -172,6 +174,7 @@ const Modal: ModalType = ({
|
|||||||
<DialogPrimitive.Overlay
|
<DialogPrimitive.Overlay
|
||||||
className="fixed inset-0 z-[1000] bg-bg-card backdrop-blur-[1px] flex items-center justify-center p-4"
|
className="fixed inset-0 z-[1000] bg-bg-card backdrop-blur-[1px] flex items-center justify-center p-4"
|
||||||
onClick={() => maskClosable && onOpenChange?.(false)}
|
onClick={() => maskClosable && onOpenChange?.(false)}
|
||||||
|
style={{ zIndex: zIndex }}
|
||||||
>
|
>
|
||||||
<DialogPrimitive.Content
|
<DialogPrimitive.Content
|
||||||
className={cn(
|
className={cn(
|
||||||
|
|||||||
@ -102,6 +102,7 @@ export const useShowDeleteConfirm = () => {
|
|||||||
style: {
|
style: {
|
||||||
width: '450px',
|
width: '450px',
|
||||||
},
|
},
|
||||||
|
zIndex: 1000,
|
||||||
okButtonClassName:
|
okButtonClassName:
|
||||||
'bg-state-error text-white hover:bg-state-error hover:text-white',
|
'bg-state-error text-white hover:bg-state-error hover:text-white',
|
||||||
onOk: async () => {
|
onOk: async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user