diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 241bfd0..3cbf62e 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -175,7 +175,7 @@ function AppContent() { - {tr("video.clickToStart")} + {tr("video.placeholder")} )} {isConnected && !isCameraOn && ( @@ -194,7 +194,7 @@ function AppContent() {
{!isConnected ? ( ) : (
diff --git a/frontend/src/components/ChatPanel/index.tsx b/frontend/src/components/ChatPanel/index.tsx index e19ada5..4ff7902 100644 --- a/frontend/src/components/ChatPanel/index.tsx +++ b/frontend/src/components/ChatPanel/index.tsx @@ -53,17 +53,6 @@ export function ChatPanel({ messages, currentReply, connectionStatus, onSendText setInputText(""); }; - // 未连接时的空状态 - if (!isConnected) { - return ( -
- 💬 -

{t("chat.empty.prompt")}

- {t("chat.empty.hint")} -
- ); - } - return (
@@ -71,8 +60,8 @@ export function ChatPanel({ messages, currentReply, connectionStatus, onSendText {messages.length === 0 && !currentReply && (
💬 -

{t("chat.welcome.prompt")}

- {t("chat.welcome.hint")} +

{isConnected ? t("chat.welcome.prompt") : t("chat.empty.prompt")}

+ {isConnected ? t("chat.welcome.hint") : t("chat.empty.hint")}
)} @@ -106,7 +95,7 @@ export function ChatPanel({ messages, currentReply, connectionStatus, onSendText
- {/* 文本输入框 - 连接后始终显示 */} + {/* 文本输入框 - 始终显示 */} {onSendText && (
setInputText(e.target.value)} + disabled={connectionStatus === "connecting"} />