fix preview dialog and waveform behavior

This commit is contained in:
Xin Wang
2026-08-04 23:04:17 +08:00
parent 59588ba88d
commit 0ce5d9774e
3 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -57,15 +57,17 @@ function DialogContent({
showCloseButton = true,
portalContainer,
contained = false,
overlayClassName,
...props
}: React.ComponentProps<typeof DialogPrimitive.Content> & {
showCloseButton?: boolean
portalContainer?: Element | DocumentFragment | null
contained?: boolean
overlayClassName?: string
}) {
return (
<DialogPortal container={portalContainer}>
<DialogOverlay contained={contained} />
<DialogOverlay contained={contained} className={overlayClassName} />
<DialogPrimitive.Content
data-slot="dialog-content"
className={cn(