fix: 删除记录弹框层级问题
This commit is contained in:
@@ -23,8 +23,9 @@ export default function ConfirmModal({
|
|||||||
return (
|
return (
|
||||||
<Dialog open onOpenChange={handleOpenChange}>
|
<Dialog open onOpenChange={handleOpenChange}>
|
||||||
<DialogContent
|
<DialogContent
|
||||||
|
overlayClassName="!z-[1200]"
|
||||||
showCloseButton={false}
|
showCloseButton={false}
|
||||||
className="max-w-[400px] flex flex-col gap-5 p-6"
|
className="!z-[1210] max-w-[400px] flex flex-col gap-5 p-6"
|
||||||
>
|
>
|
||||||
<DialogHeader className="flex flex-row items-center gap-3 text-left">
|
<DialogHeader className="flex flex-row items-center gap-3 text-left">
|
||||||
<TrashIcon width="20" height="20" className="shrink-0 text-[var(--danger)]" />
|
<TrashIcon width="20" height="20" className="shrink-0 text-[var(--danger)]" />
|
||||||
|
|||||||
@@ -49,11 +49,12 @@ function DialogContent({
|
|||||||
className,
|
className,
|
||||||
children,
|
children,
|
||||||
showCloseButton = true,
|
showCloseButton = true,
|
||||||
|
overlayClassName,
|
||||||
...props
|
...props
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<DialogPortal data-slot="dialog-portal">
|
<DialogPortal data-slot="dialog-portal">
|
||||||
<DialogOverlay />
|
<DialogOverlay className={overlayClassName} />
|
||||||
<DialogPrimitive.Content
|
<DialogPrimitive.Content
|
||||||
data-slot="dialog-content"
|
data-slot="dialog-content"
|
||||||
className={cn(
|
className={cn(
|
||||||
|
|||||||
Reference in New Issue
Block a user