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.
This commit is contained in:
@@ -1468,11 +1468,11 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
<span>{{ $t('knowledgeBase.unsupportedTypesHint', { types: unsupportedFileTypes.map(t => '.' + t).join('、') }) }}</span>
|
<span>{{ $t('knowledgeBase.unsupportedTypesHint', { types: unsupportedFileTypes.map(t => '.' + t).join('、') }) }}</span>
|
||||||
<span class="parser-hint-link">{{ $t('knowledgeBase.goToParserSettings') }} →</span>
|
<span class="parser-hint-link">{{ $t('knowledgeBase.goToParserSettings') }} →</span>
|
||||||
</p>
|
</p>
|
||||||
<div v-if="missingStorageEngine" class="storage-engine-warning" @click="handleOpenKBSettings">
|
<p v-if="missingStorageEngine" class="storage-engine-warning" @click="handleOpenKBSettings">
|
||||||
<t-icon name="error-circle" class="warning-icon" />
|
<t-icon name="info-circle" class="warning-icon" />
|
||||||
<span>{{ $t('knowledgeBase.missingStorageEngine') }}</span>
|
<span>{{ $t('knowledgeBase.missingStorageEngine') }}</span>
|
||||||
<span class="warning-link">{{ $t('knowledgeBase.goToStorageSettings') }} →</span>
|
<span class="warning-link">{{ $t('knowledgeBase.goToStorageSettings') }} →</span>
|
||||||
</div>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -2652,20 +2652,16 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
.storage-engine-warning {
|
.storage-engine-warning {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6px;
|
gap: 4px;
|
||||||
margin: 8px 0 0;
|
margin: 2px 0 0;
|
||||||
padding: 8px 12px;
|
|
||||||
background: var(--td-warning-color-1, #fff8e6);
|
|
||||||
border: 1px solid var(--td-warning-color-3, #ffcc33);
|
|
||||||
border-radius: 6px;
|
|
||||||
color: var(--td-warning-color);
|
color: var(--td-warning-color);
|
||||||
font-size: 13px;
|
font-size: 12px;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background 0.15s ease;
|
transition: color 0.15s ease;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--td-warning-color-2, #fff1c9);
|
color: var(--td-warning-color-active);
|
||||||
|
|
||||||
.warning-link {
|
.warning-link {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
@@ -2673,7 +2669,7 @@ async function createNewSession(value: string): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.warning-icon {
|
.warning-icon {
|
||||||
font-size: 14px;
|
font-size: 12px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user