This commit is contained in:
yyh 2026-04-14 15:20:01 +08:00
parent df51d963ef
commit eaab847464
No known key found for this signature in database
2 changed files with 2 additions and 8 deletions

View File

@ -203,6 +203,7 @@ __all__ = [
"saved_message", "saved_message",
"setup", "setup",
"site", "site",
"socketio_workflow",
"spec", "spec",
"statistic", "statistic",
"tags", "tags",

View File

@ -83,16 +83,9 @@ export function DialogContent({
overlayClassName, overlayClassName,
backdropProps, backdropProps,
}: DialogContentProps) { }: DialogContentProps) {
const backdropContentProps = backdropProps
? (({ className: _className, ...rest }) => rest)(backdropProps)
: {}
return ( return (
<DialogPortal> <DialogPortal>
<DialogBackdrop <DialogBackdrop {...backdropProps} className={cn(overlayClassName, backdropProps?.className)} />
{...backdropContentProps}
className={cn(overlayClassName, backdropProps?.className)}
/>
<DialogPopup <DialogPopup
className={cn( className={cn(
'top-1/2 left-1/2 max-h-[80dvh] w-[480px] max-w-[calc(100vw-2rem)] -translate-x-1/2 -translate-y-1/2 overflow-y-auto overscroll-contain rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-6 shadow-xl', 'top-1/2 left-1/2 max-h-[80dvh] w-[480px] max-w-[calc(100vw-2rem)] -translate-x-1/2 -translate-y-1/2 overflow-y-auto overscroll-contain rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg p-6 shadow-xl',