feat(frontend): unify external doc-link style and outline add buttons

- Add global .doc-link utility in theme.css (brand color text + link icon, underline on hover).

- Convert all external doc/console links across settings to use .doc-link with a trailing <t-icon name="link" />, matching the Ollama browse-library style.

- Switch primary section-toolbar 'Add X' buttons (Model/WebSearch/VectorStore/MCP/DataSource) to outline variant for a lighter, more consistent look.

- Drop redundant per-component CSS for builtin-hint-link, weknoracloud-hint-link, engine-doc-link, engine-link, hint-link, section-doc-link, ds-doc-link-inline, model-link, etc.
This commit is contained in:
wizardchen
2026-05-07 21:00:20 +08:00
committed by lyingbug
parent cc6ac6ac50
commit c77cef5a69
15 changed files with 80 additions and 166 deletions
+2 -2
View File
@@ -17,7 +17,7 @@
<h3>{{ $t('mcpSettings.configuredServices') }}</h3>
<p>{{ $t('mcpSettings.manageAndTest') }}</p>
</div>
<t-button size="small" theme="primary" @click="handleAdd">
<t-button size="small" theme="primary" variant="outline" @click="handleAdd">
<template #icon><t-icon name="add" /></template>
{{ $t('mcpSettings.addService') }}
</t-button>
@@ -25,7 +25,7 @@
<div v-if="services.length === 0" class="empty-state">
<t-empty :description="$t('mcpSettings.empty')">
<t-button theme="primary" size="small" @click="handleAdd">
<t-button theme="primary" variant="outline" size="small" @click="handleAdd">
<template #icon><t-icon name="add" /></template>
{{ $t('mcpSettings.addFirst') }}
</t-button>