Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

feat: add pulsing animation to stop button and improve loading indicator styling

wizardcheneb7299b5ecb3
diff --git a/frontend/src/components/Input-field.vue b/frontend/src/components/Input-field.vue
index 5103d31b9..c607b07dd 100644
--- a/frontend/src/components/Input-field.vue
+++ b/frontend/src/components/Input-field.vue
@@ -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;
}
}
diff --git a/frontend/src/views/chat/components/AgentStreamDisplay.vue b/frontend/src/views/chat/components/AgentStreamDisplay.vue
index 4fdf7e0d0..013ca06de 100644
--- a/frontend/src/views/chat/components/AgentStreamDisplay.vue
+++ b/frontend/src/views/chat/components/AgentStreamDisplay.vue
@@ -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 内容 -->