From eb7299b5ecb3ba0b91271aeb4eaea1d057d63262 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Sun, 15 Mar 2026 18:34:12 +0800 Subject: [PATCH] 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. --- frontend/src/components/Input-field.vue | 12 ++++++++++++ .../views/chat/components/AgentStreamDisplay.vue | 14 ++------------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/Input-field.vue b/frontend/src/components/Input-field.vue index 5103d31b..c607b07d 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 4fdf7e0d..013ca06d 100644 --- a/frontend/src/views/chat/components/AgentStreamDisplay.vue +++ b/frontend/src/views/chat/components/AgentStreamDisplay.vue @@ -298,24 +298,14 @@ - - - +
- - - -
- +