From f83e04ed6fc0a347b6f7c3d2a3201a0a2ce2e4a6 Mon Sep 17 00:00:00 2001 From: chenhang Date: Thu, 25 Jun 2026 11:26:32 +0800 Subject: [PATCH] fix(chat): hide voice message transcript --- src/app/chat/components/message-content.tsx | 1 - src/app/chat/components/voice-bubble.module.css | 8 -------- src/app/chat/components/voice-bubble.tsx | 3 --- 3 files changed, 12 deletions(-) diff --git a/src/app/chat/components/message-content.tsx b/src/app/chat/components/message-content.tsx index 8d5ff775..f4778ecf 100644 --- a/src/app/chat/components/message-content.tsx +++ b/src/app/chat/components/message-content.tsx @@ -81,7 +81,6 @@ export function MessageContent({ {hasAudio && audioUrl ? ( ) : null} diff --git a/src/app/chat/components/voice-bubble.module.css b/src/app/chat/components/voice-bubble.module.css index c0eedf57..590c8061 100644 --- a/src/app/chat/components/voice-bubble.module.css +++ b/src/app/chat/components/voice-bubble.module.css @@ -96,14 +96,6 @@ height: 26px; } -.text { - margin: 0; - font-size: var(--font-size-md, 14px); - line-height: 1.45; - white-space: pre-wrap; - word-break: break-word; -} - .error { margin: 0; color: var(--color-error, #ff4d4f); diff --git a/src/app/chat/components/voice-bubble.tsx b/src/app/chat/components/voice-bubble.tsx index 230be563..0b4133f3 100644 --- a/src/app/chat/components/voice-bubble.tsx +++ b/src/app/chat/components/voice-bubble.tsx @@ -7,13 +7,11 @@ import styles from "./voice-bubble.module.css"; export interface VoiceBubbleProps { audioUrl: string; - content?: string; isFromAI: boolean; } export function VoiceBubble({ audioUrl, - content = "", isFromAI, }: VoiceBubbleProps) { const audioRef = useRef(null); @@ -82,7 +80,6 @@ export function VoiceBubble({ - {content.length > 0 ?

{content}

: null} {hasError ? (

Voice message failed to load.

) : null}