fix: 删除记录弹框层级问题

This commit is contained in:
hzm
2026-03-09 19:24:09 +08:00
parent 3ed129afb2
commit 480abbcf47
2 changed files with 4 additions and 2 deletions

View File

@@ -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)]" />

View File

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