feat: add pulsing animation to stop button and improve loading indicator styling
- Introduced a pulsing animation for the stop button in the Input-field component, enhancing visual feedback. - Updated the loading indicator in the AgentStreamDisplay component to clarify its purpose and improve overall styling. These changes enhance user interaction and visual appeal in the chat interface.
This commit is contained in:
@@ -2721,6 +2721,18 @@ const getImgSrc = (url: string) => {
|
||||
background: var(--td-brand-color);
|
||||
border-radius: 50%;
|
||||
display: block;
|
||||
animation: stopBtnPulse 1.5s ease-in-out infinite;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes stopBtnPulse {
|
||||
0%, 100% {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
transform: scale(0.75);
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -298,24 +298,14 @@
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<!-- Loading Indicator -->
|
||||
<!-- Loading Indicator (inside container so it scrolls into view) -->
|
||||
<div v-if="!isConversationDone && eventStream.length > 0" class="loading-indicator">
|
||||
<!-- 方案1: 三个跳动的圆点 -->
|
||||
<!-- <div class="loading-dots">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</div> -->
|
||||
|
||||
<!-- 方案4: 打字机效果(注释掉,可替换使用) -->
|
||||
<div class="loading-typing">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 全局浮层:统一承载 Web/KB 的 hover 内容 -->
|
||||
|
||||
Reference in New Issue
Block a user