From d4e14235a60e24804872b228752f22f9a75c4360 Mon Sep 17 00:00:00 2001
From: wizardchen
Date: Mon, 16 Mar 2026 20:27:15 +0800
Subject: [PATCH] fix: update storage engine warning display and styling
- Changed the storage engine warning from a div to a paragraph for better semantic structure.
- Updated the warning icon from 'error-circle' to 'info-circle' to better reflect the message.
- Adjusted CSS styles for the storage engine warning, including reduced gap and margin, and modified font size for improved readability.
---
.../src/views/knowledge/KnowledgeBase.vue | 22 ++++++++-----------
1 file changed, 9 insertions(+), 13 deletions(-)
diff --git a/frontend/src/views/knowledge/KnowledgeBase.vue b/frontend/src/views/knowledge/KnowledgeBase.vue
index 7a908e4c..dc6bf5bf 100644
--- a/frontend/src/views/knowledge/KnowledgeBase.vue
+++ b/frontend/src/views/knowledge/KnowledgeBase.vue
@@ -1468,11 +1468,11 @@ async function createNewSession(value: string): Promise {
{{ $t('knowledgeBase.unsupportedTypesHint', { types: unsupportedFileTypes.map(t => '.' + t).join('、') }) }}
{{ $t('knowledgeBase.goToParserSettings') }} →
-
-
+
+
{{ $t('knowledgeBase.missingStorageEngine') }}
{{ $t('knowledgeBase.goToStorageSettings') }} →
-
+
@@ -2652,20 +2652,16 @@ async function createNewSession(value: string): Promise {
.storage-engine-warning {
display: flex;
align-items: center;
- gap: 6px;
- margin: 8px 0 0;
- padding: 8px 12px;
- background: var(--td-warning-color-1, #fff8e6);
- border: 1px solid var(--td-warning-color-3, #ffcc33);
- border-radius: 6px;
+ gap: 4px;
+ margin: 2px 0 0;
color: var(--td-warning-color);
- font-size: 13px;
+ font-size: 12px;
line-height: 1.4;
cursor: pointer;
- transition: background 0.15s ease;
+ transition: color 0.15s ease;
&:hover {
- background: var(--td-warning-color-2, #fff1c9);
+ color: var(--td-warning-color-active);
.warning-link {
text-decoration: underline;
@@ -2673,7 +2669,7 @@ async function createNewSession(value: string): Promise {
}
.warning-icon {
- font-size: 14px;
+ font-size: 12px;
flex-shrink: 0;
}