fix preview dialog and waveform behavior
This commit is contained in:
@@ -1050,9 +1050,8 @@ function DebugVoicePanel({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 底部双轨波形:会话连通后默认展开,空闲时收起 */}
|
{/* 底部双轨波形默认收起;展开状态只由用户操作控制。 */}
|
||||||
<WaveformTimelinePanel
|
<WaveformTimelinePanel
|
||||||
key={status === "connected" ? "active" : "idle"}
|
|
||||||
defaultOpen={false}
|
defaultOpen={false}
|
||||||
userStream={localStream}
|
userStream={localStream}
|
||||||
agentStream={remoteStream}
|
agentStream={remoteStream}
|
||||||
|
|||||||
@@ -215,6 +215,9 @@ export function ClientMessageDialog({
|
|||||||
className="gap-5 sm:max-w-md"
|
className="gap-5 sm:max-w-md"
|
||||||
portalContainer={container}
|
portalContainer={container}
|
||||||
contained={contained}
|
contained={contained}
|
||||||
|
overlayClassName={
|
||||||
|
contained ? "bg-black/20 backdrop-blur-md" : undefined
|
||||||
|
}
|
||||||
showCloseButton={message?.dismissible ?? true}
|
showCloseButton={message?.dismissible ?? true}
|
||||||
onEscapeKeyDown={(event) => {
|
onEscapeKeyDown={(event) => {
|
||||||
if (!message?.dismissible) event.preventDefault();
|
if (!message?.dismissible) event.preventDefault();
|
||||||
|
|||||||
@@ -57,15 +57,17 @@ function DialogContent({
|
|||||||
showCloseButton = true,
|
showCloseButton = true,
|
||||||
portalContainer,
|
portalContainer,
|
||||||
contained = false,
|
contained = false,
|
||||||
|
overlayClassName,
|
||||||
...props
|
...props
|
||||||
}: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
}: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
||||||
showCloseButton?: boolean
|
showCloseButton?: boolean
|
||||||
portalContainer?: Element | DocumentFragment | null
|
portalContainer?: Element | DocumentFragment | null
|
||||||
contained?: boolean
|
contained?: boolean
|
||||||
|
overlayClassName?: string
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<DialogPortal container={portalContainer}>
|
<DialogPortal container={portalContainer}>
|
||||||
<DialogOverlay contained={contained} />
|
<DialogOverlay contained={contained} 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