mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-02 05:31:02 +00:00
feat(webui): enhance ChatViewer and AssistantMessage with timeline positioning
- Update ChatViewer to calculate and pass timeline positions (isFirst/isLast) to messages - Enhance AssistantMessage with timeline connector visualization - Add storybook stories for AssistantMessage component - Update SearchToolCall and LayoutComponents for improved UI consistency - Export new adapters in main index file - Add timeline styling to components Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
1861557d15
commit
df787fff64
12 changed files with 1287 additions and 328 deletions
|
|
@ -89,7 +89,8 @@
|
|||
}
|
||||
|
||||
.chat-viewer-messages > *:not(:last-child) {
|
||||
padding-bottom: 8px;
|
||||
padding-bottom: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
/* Disable overflow anchoring on individual items for manual scroll control */
|
||||
|
|
@ -102,6 +103,15 @@
|
|||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* ===========================
|
||||
Timeline Wrapper Styles
|
||||
=========================== */
|
||||
|
||||
/* Tool call wrapper - transparent container for timeline continuity */
|
||||
.chat-viewer-toolcall-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* ===========================
|
||||
Animations
|
||||
=========================== */
|
||||
|
|
@ -150,3 +160,24 @@
|
|||
height: 1px;
|
||||
overflow-anchor: auto;
|
||||
}
|
||||
|
||||
/* ===========================
|
||||
ChatViewer-specific Styles
|
||||
=========================== */
|
||||
|
||||
/* Better spacing between message groups */
|
||||
.chat-viewer-messages .user-message-container {
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
/* Ensure proper stacking context */
|
||||
.chat-viewer-messages > * {
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
/* Responsive adjustments for ChatViewer */
|
||||
@media (max-width: 600px) {
|
||||
.chat-viewer-messages {
|
||||
padding: 12px;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue