From 43394a35bbe5a085d3848da344339a59278f69a9 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Thu, 5 Mar 2026 17:25:13 +0800 Subject: [PATCH] refactor: adjust component styles for improved consistency - Modified border-radius values in botmsg and usermsg components for a more uniform appearance. - Increased font size in the ai-markdown-template class for better readability. - Removed hover scale effect in AgentStreamDisplay, botmsg, and usermsg components to streamline interactions. These changes enhance the visual consistency and usability of the chat components, contributing to a more polished user interface. --- frontend/src/views/chat/components/AgentStreamDisplay.vue | 1 - frontend/src/views/chat/components/botmsg.vue | 5 ++--- frontend/src/views/chat/components/usermsg.vue | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/chat/components/AgentStreamDisplay.vue b/frontend/src/views/chat/components/AgentStreamDisplay.vue index 80651786..f93cdff1 100644 --- a/frontend/src/views/chat/components/AgentStreamDisplay.vue +++ b/frontend/src/views/chat/components/AgentStreamDisplay.vue @@ -2021,7 +2021,6 @@ const handleAddToKnowledge = (answerEvent: any) => { background-color: var(--td-bg-color-secondarycontainer); /* 加载时的占位背景色 */ &:hover { - transform: scale(1.02); } } } diff --git a/frontend/src/views/chat/components/botmsg.vue b/frontend/src/views/chat/components/botmsg.vue index ac7637ad..503b0f71 100644 --- a/frontend/src/views/chat/components/botmsg.vue +++ b/frontend/src/views/chat/components/botmsg.vue @@ -327,7 +327,7 @@ onBeforeUnmount(() => { align-items: center; gap: 4px; padding: 3px 8px; - border-radius: 10px; + border-radius: 4px; font-size: 12px; font-weight: 500; max-width: 200px; @@ -391,7 +391,7 @@ onBeforeUnmount(() => { } .ai-markdown-template { - font-size: 13px; + font-size: 15px; color: var(--td-text-color-primary); line-height: 1.6; } @@ -490,7 +490,6 @@ onBeforeUnmount(() => { transition: transform 0.2s ease; &:hover { - transform: scale(1.02); } } diff --git a/frontend/src/views/chat/components/usermsg.vue b/frontend/src/views/chat/components/usermsg.vue index e932f7dc..48b5d768 100644 --- a/frontend/src/views/chat/components/usermsg.vue +++ b/frontend/src/views/chat/components/usermsg.vue @@ -62,7 +62,7 @@ const props = defineProps({ align-items: center; gap: 4px; padding: 3px 8px; - border-radius: 10px; + border-radius: 5px; font-size: 12px; font-weight: 500; max-width: 200px; @@ -118,7 +118,7 @@ const props = defineProps({ background: #8CE97F; margin-left: auto; color: #000000e6; - font-size: 16px; + font-size: 15px; text-align: justify; word-break: break-all; max-width: 100%;