fix(frontend): 移除历史消息加载时action-item的入场动画,仅流式输出时保留动画

This commit is contained in:
JOJO 2026-06-09 10:27:48 +08:00
parent 4807c0b9f1
commit 2fcd241d94
2 changed files with 8 additions and 2 deletions

View File

@ -142,7 +142,8 @@
group.action?.streaming ||
group.action?.type === 'text' ||
group.action?.type === 'thinking',
'thinking-finished': group.action?.type === 'thinking' && !group.action?.streaming
'thinking-finished': group.action?.type === 'thinking' && !group.action?.streaming,
'no-entry-animation': !streamingMessage || index !== latestMessageIndex
}"
>
<div
@ -365,7 +366,8 @@
'completed-tool': action.type === 'tool' && !action.streaming,
'immediate-show':
action.streaming || action.type === 'text' || action.type === 'thinking',
'thinking-finished': action.type === 'thinking' && !action.streaming
'thinking-finished': action.type === 'thinking' && !action.streaming,
'no-entry-animation': !streamingMessage || index !== latestMessageIndex
}"
>
<div

View File

@ -766,6 +766,10 @@
animation: slideInFade 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.action-item.no-entry-animation {
animation: none !important;
}
.action-item.streaming-content,
.action-item.immediate-show {
animation: quickFadeIn 0.2s ease-out both;