输入框支持换行:Enter 仍为发送,Ctrl/⌘/⌥+Enter(及 Shift+Enter)在光标处插入换行并联动高度自适应;新增 IME isComposing 防护避免中文候选回车误发送;.msg.me .msg-bubble 加 white-space:pre-wrap 使发送后的多行消息保留换行

This commit is contained in:
2026-08-31 14:38:27 +08:00
parent 0d2e820118
commit d4cf407cd1
2 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ body {
word-break: break-word; overflow-wrap: break-word; font-size: 14.5px;
background: #fff; box-shadow: 0 1px 3px rgba(30,40,90,0.07);
}
.msg.me .msg-bubble { background: #d7e7ff; border-bottom-right-radius: 4px; }
.msg.me .msg-bubble { background: #d7e7ff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.other .msg-bubble { border-bottom-left-radius: 4px; }
.msg-bubble pre {
background: #f0f2f6; padding: 8px 10px; border-radius: 8px;