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.",