revert(chat): 去掉打字机效果,恢复直接显示流式文本

- 删除全部打字机逻辑(start/flush/stop/finishTypewriter、typingConfig、光标)
- assistant_delta 改回 state.streamEl.textContent = state.streamText 直接显示
- 服务端每个 delta 推什么就显示什么,自然形成逐字效果
- 保留在底部跟随 + wheel/touchmove 暂停的滚动方案
- 移除打字机光标 CSS
This commit is contained in:
2026-09-02 19:43:38 +08:00
parent 4f28071d23
commit 0d0fc137c9
2 changed files with 10 additions and 76 deletions
-8
View File
@@ -497,11 +497,3 @@ body {
.scroll-bottom-btn .sb-spinner circle { stroke: #dde; stroke-width: 2.5; fill: none; }
.scroll-bottom-btn .sb-spinner path { stroke: #3964FE; stroke-width: 2.5; stroke-linecap: round; fill: none; }
@keyframes sb-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
/* 打字机光标:AI 流式输出中,气泡末尾闪烁竖条 */
.msg-bubble.typing::after {
content: ''; display: inline-block; width: 2px; height: 1em;
background: #556; margin-left: 2px; vertical-align: text-bottom;
animation: tw-cursor 1s steps(1) infinite;
}
@keyframes tw-cursor { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }