From 767fca6a79eceb130e913c8d0f87ef2ef170c935 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Fri, 30 Oct 2026 13:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=A9=E7=9F=AD=E6=89=8B=E6=9C=BA=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=8F=90=E7=A4=BA=E5=B9=B6=E9=81=BF=E5=85=8D=E7=A9=BA?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E6=8F=90=E7=A4=BA=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/chat.css | 1 + static/js/chat.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/static/css/chat.css b/static/css/chat.css index 11488ba..e226bf8 100644 --- a/static/css/chat.css +++ b/static/css/chat.css @@ -110,6 +110,7 @@ body { padding: 20px; height: 100vh; height: 100dvh; overflow: hidden; } .human-system-message { margin: 8px 0; text-align: center; color: var(--muted); font-size: 12px; } #input-text { flex: 1; min-width: 0; min-height: 38px; max-height: 170px; padding: 9px 1px; border: 0; background: transparent; color: var(--text); font-size: 1em; line-height: 1.6; resize: none; outline: none; } #input-text::placeholder { color: var(--muted); } +#input-text:placeholder-shown { white-space: nowrap; overflow: hidden; } #send-button { min-width: 66px; height: 38px; flex-shrink: 0; padding: 0 15px; border: 0; border-radius: 8px; background: var(--brand); color: white; font-size: 12px; font-weight: 600; } #send-button:hover { background: var(--brand-hover); } #send-button.stop { background: var(--danger); } diff --git a/static/js/chat.js b/static/js/chat.js index d8fac14..d6b33ce 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -260,7 +260,7 @@ const I18N = { footerHuman: "联系人工", disclaimer: "报价与时效仅供参考,请以客服最终确认为准", keyboardHint: "Enter 发送 · Shift + Enter 换行", - inputShort: "输入问题、订单号或入仓码…", + inputShort: "输入问题…", uploading: "附件正在上传,请稍候…", uploadFailed: "附件上传失败,请重新选择文件", serviceUnavailable: "服务暂时不可用,请稍后重试,或联系人工客服。", @@ -370,7 +370,7 @@ const I18N = { footerHuman: "Human support", disclaimer: "Quotes and transit times are subject to final confirmation", keyboardHint: "Enter to send · Shift + Enter for a new line", - inputShort: "Question or tracking number…", + inputShort: "Message…", uploading: "Uploading your attachment…", uploadFailed: "Upload failed. Please select the file again.", serviceUnavailable: "Service is temporarily unavailable. Please try again later or contact support.",