Skip to content

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

refactor: adjust component styles for improved consistency

wizardchen43394a35bbe5
diff --git a/frontend/src/views/chat/components/AgentStreamDisplay.vue b/frontend/src/views/chat/components/AgentStreamDisplay.vue
index 806517867..f93cdff14 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 ac7637adf..503b0f71d 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 e932f7dc2..48b5d768f 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%;