feat(chat): 优化聊天面板交互体验 — 推理折叠/智能滚动/工具中文名/代码块按钮

This commit is contained in:
2026-06-02 08:43:26 +08:00
parent 628b592577
commit 9c9afbd108
10 changed files with 408 additions and 8 deletions

View File

@@ -141,6 +141,7 @@ body {
flex-direction: column;
min-height: 0;
min-width: 0;
position: relative;
}
.chat-welcome-area {
@@ -251,6 +252,47 @@ body {
color: var(--ant-color-text-secondary);
}
.chat-scroll-bottom-btn {
position: absolute;
bottom: 115px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
[data-streamdown="code-block-actions"] {
gap: 4px;
}
[data-streamdown="code-block-actions"] button {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 28px;
height: 28px;
padding: 0 6px;
border-radius: var(--ant-border-radius-sm);
border: 1px solid var(--ant-color-border-secondary);
background: var(--ant-color-bg-container);
color: var(--ant-color-text-secondary);
font-size: 12px;
transition: all 0.2s;
}
[data-streamdown="code-block-actions"] button:hover {
color: var(--ant-color-primary);
border-color: var(--ant-color-primary);
}
[data-streamdown="code-block-actions"] button svg {
width: 14px;
height: 14px;
}
.app-page-flex {
flex: 1;
}