feat: enhance UserMenu and KnowledgeBase components with loading skeletons and improved UI elements, including GitHub star tooltip and translations for better user experience

This commit is contained in:
wizardchen
2026-04-11 17:39:39 +08:00
committed by lyingbug
parent e49ff986eb
commit c4ebc1f60e
8 changed files with 283 additions and 216 deletions
+12 -2
View File
@@ -79,10 +79,15 @@
</svg>
</span>
</div>
<div class="menu-item" @click="openGithub">
<div
class="menu-item"
:title="$t('common.githubStarTip')"
@click="openGithub"
>
<t-icon name="logo-github" class="menu-icon" />
<span class="menu-text-with-icon">
<span>GitHub</span>
<span>{{ $t('common.github') }}</span>
<t-icon name="star-filled" class="menu-github-star-icon" size="14px" aria-hidden="true" />
<svg class="menu-external-icon" viewBox="0 0 16 16" aria-hidden="true">
<path
fill="currentColor"
@@ -459,6 +464,11 @@ onUnmounted(() => {
letter-spacing: 0.02em;
}
.menu-github-star-icon {
flex-shrink: 0;
color: var(--td-warning-color);
}
.menu-external-icon {
width: 14px;
height: 14px;