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;
+1
View File
@@ -1165,6 +1165,7 @@ export default {
clawhubSkill: 'Claw Skill',
newBadge: 'New',
github: 'GitHub',
githubStarTip: 'Open the repo on GitHub — star it if you find it useful',
on: 'On',
off: 'Off',
resetToDefault: 'Reset to default',
+1
View File
@@ -1008,6 +1008,7 @@ export default {
clawhubSkill: 'Claw Skill',
newBadge: 'New',
github: 'GitHub',
githubStarTip: 'GitHub에서 저장소로 이동합니다. 유용하다면 Star를 부탁드립니다',
on: "켜기",
off: "끄기",
resetToDefault: "기본값 복원",
+1
View File
@@ -1127,6 +1127,7 @@ export default {
clawhubSkill: 'Claw Skill',
newBadge: 'New',
github: 'GitHub',
githubStarTip: 'Открыть репозиторий на GitHub — поставьте Star, если проект полезен',
on: 'Вкл',
off: 'Выкл',
resetToDefault: 'Сбросить по умолчанию',
+1
View File
@@ -1012,6 +1012,7 @@ export default {
clawhubSkill: "Claw Skill",
newBadge: "New",
github: 'GitHub',
githubStarTip: '在 GitHub 打开仓库,若觉得有用欢迎点个 Star',
on: "开启",
off: "关闭",
resetToDefault: "恢复默认",
+125 -98
View File
@@ -1473,8 +1473,13 @@ async function createNewSession(value: string): Promise<void> {
:disabled="!kbId"
@click.stop="handleNavigateToCurrentKB"
>
<span>{{ kbInfo?.name || '--' }}</span>
<t-icon name="chevron-down" />
<template v-if="!kbInfo">
<t-skeleton animation="gradient" :row-col="[{ width: '120px', height: '20px' }]" />
</template>
<template v-else>
<span>{{ kbInfo.name }}</span>
<t-icon name="chevron-down" />
</template>
</button>
</t-dropdown>
<button
@@ -1484,13 +1489,18 @@ async function createNewSession(value: string): Promise<void> {
:disabled="!kbId"
@click="handleNavigateToCurrentKB"
>
{{ kbInfo?.name || '--' }}
<template v-if="!kbInfo">
<t-skeleton animation="gradient" :row-col="[{ width: '120px', height: '20px' }]" />
</template>
<template v-else>
{{ kbInfo.name }}
</template>
</button>
<t-icon name="chevron-right" class="breadcrumb-separator" />
<span class="breadcrumb-current">{{ $t('knowledgeEditor.document.title') }}</span>
</h2>
<!-- 身份与最后更新:紧凑单行,置于标题行右侧,悬停显示权限说明 -->
<div v-if="kbInfo" class="kb-access-meta">
<div v-if="kbInfo && !authStore.isLiteMode" class="kb-access-meta">
<t-tooltip :content="accessPermissionSummary" placement="top">
<span class="kb-access-meta-inner">
<t-tag size="small" :theme="isOwner ? 'success' : (effectiveKBPermission === 'admin' ? 'primary' : effectiveKBPermission === 'editor' ? 'warning' : 'default')" class="kb-access-role-tag">
@@ -1570,7 +1580,7 @@ async function createNewSession(value: string): Promise<void> {
:title="$t('knowledgeBase.tagCreateAction')"
@click="startCreateTag"
>
<span class="create-tag-plus" aria-hidden="true">+</span>
<t-icon name="add" />
</t-button>
</div>
</div>
@@ -1586,11 +1596,18 @@ async function createNewSession(value: string): Promise<void> {
</template>
</t-input>
</div>
<t-loading :loading="tagLoading" size="small">
<div class="tag-list">
<div class="tag-list">
<template v-if="tagLoading && !filteredTags.length">
<div v-for="n in 8" :key="'skel-tag-'+n" class="tag-list-item" style="cursor: default; pointer-events: none;">
<div class="tag-list-left" style="gap: 12px; width: 100%;">
<t-skeleton animation="gradient" :row-col="[{ width: '80%', height: '18px' }]" />
</div>
</div>
</template>
<template v-else>
<div v-if="creatingTag" class="tag-list-item tag-editing" @click.stop>
<div class="tag-list-left">
<t-icon name="folder" size="18px" />
<span class="tag-hash-icon">#</span>
<div class="tag-edit-input">
<t-input
ref="newTagInputRef"
@@ -1635,7 +1652,7 @@ async function createNewSession(value: string): Promise<void> {
@click="handleTagRowClick(tag.id)"
>
<div class="tag-list-left">
<t-icon name="folder" size="18px" />
<span class="tag-hash-icon">#</span>
<template v-if="editingTagId === tag.id">
<div class="tag-edit-input" @click.stop>
<t-input
@@ -1714,8 +1731,8 @@ async function createNewSession(value: string): Promise<void> {
{{ $t('tenant.loadMore') }}
</t-button>
</div>
</div>
</t-loading>
</template>
</div>
</aside>
<div class="tag-content">
<div class="doc-card-area">
@@ -2121,19 +2138,18 @@ async function createNewSession(value: string): Promise<void> {
display: flex;
flex: 1;
min-height: 0;
background: var(--td-bg-color-container);
border: 1px solid var(--td-component-stroke);
border-radius: 10px;
overflow: hidden;
background: transparent;
border: none;
}
// 与列表页筛选区一致:白底卡片感、细分界
// 贴近整体系统设计语言的极简侧栏(对齐 menu 与右侧主窗口质感)
.tag-sidebar {
width: 200px;
background: var(--td-bg-color-container);
width: 180px;
background: transparent;
border: none;
border-right: 1px solid var(--td-component-stroke);
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
padding: 16px;
box-shadow: 1px 0 0 rgba(0, 0, 0, 0.02);
padding: 0 16px 0 0;
display: flex;
flex-direction: column;
flex-shrink: 0;
@@ -2144,62 +2160,71 @@ async function createNewSession(value: string): Promise<void> {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
margin-bottom: 12px;
padding: 0 4px;
color: var(--td-text-color-primary);
.sidebar-title {
display: flex;
align-items: baseline;
gap: 4px;
font-size: 13px;
gap: 6px;
font-size: 14px;
font-weight: 600;
letter-spacing: 0.5px;
.sidebar-count {
font-size: 12px;
color: var(--td-text-color-secondary);
color: var(--td-text-color-placeholder);
font-weight: 400;
}
}
.sidebar-actions {
display: flex;
gap: 6px;
color: var(--td-text-color-placeholder);
align-items: center;
.create-tag-btn {
width: 24px;
height: 24px;
padding: 0;
border-radius: 6px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
font-weight: 600;
color: var(--td-success-color);
line-height: 1;
transition: background 0.2s ease, color 0.2s ease;
color: var(--td-text-color-secondary);
transition: all 0.2s ease;
.t-icon {
font-size: 16px;
}
&:hover {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-brand-color-active);
color: var(--td-brand-color);
}
}
.create-tag-plus {
line-height: 1;
}
}
}
.tag-search-bar {
margin-bottom: 10px;
margin-bottom: 12px;
padding: 0 4px;
:deep(.t-input) {
font-size: 13px;
background-color: var(--td-bg-color-container);
border-color: var(--td-component-stroke);
background-color: var(--td-bg-color-secondarycontainer);
border-color: transparent;
border-radius: 6px;
box-shadow: none !important;
&:hover,
&:focus,
&.t-is-focused {
border-color: var(--td-brand-color);
background-color: var(--td-bg-color-container);
box-shadow: none !important;
}
}
}
@@ -2233,13 +2258,13 @@ async function createNewSession(value: string): Promise<void> {
display: flex;
align-items: center;
justify-content: space-between;
padding: 9px 12px;
padding: 8px 8px;
border-radius: 6px;
color: var(--td-text-color-primary);
cursor: pointer;
transition: all 0.2s ease;
font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
font-size: 14px;
font-size: 13px;
-webkit-font-smoothing: antialiased;
.tag-list-left {
@@ -2249,12 +2274,25 @@ async function createNewSession(value: string): Promise<void> {
min-width: 0;
flex: 1;
.t-icon {
.t-icon,
.tag-hash-icon {
flex-shrink: 0;
color: var(--td-text-color-secondary);
font-size: 14px;
transition: color 0.2s ease;
}
.t-icon {
font-size: 16px;
}
.tag-hash-icon {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 16px;
font-weight: 500;
width: 16px;
text-align: center;
display: inline-block;
}
}
.tag-name {
@@ -2264,10 +2302,9 @@ async function createNewSession(value: string): Promise<void> {
text-overflow: ellipsis;
white-space: nowrap;
font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
font-size: 14px;
font-weight: 450;
font-size: 13px;
font-weight: 400;
line-height: 1.4;
letter-spacing: 0.01em;
}
.tag-list-right {
@@ -2280,37 +2317,34 @@ async function createNewSession(value: string): Promise<void> {
.tag-count {
font-size: 12px;
color: var(--td-text-color-secondary);
font-weight: 500;
min-width: 28px;
padding: 3px 7px;
border-radius: 8px;
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-placeholder);
font-weight: 400;
transition: all 0.2s ease;
text-align: center;
box-sizing: border-box;
text-align: right;
padding-left: 8px;
background: transparent;
}
&:hover {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-primary);
.tag-list-left .t-icon {
color: var(--td-text-color-primary);
.tag-list-left .t-icon,
.tag-list-left .tag-hash-icon {
color: var(--td-text-color-secondary);
}
.tag-count {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-primary);
color: var(--td-text-color-secondary);
}
}
&.active {
background: var(--td-success-color-light);
background: var(--td-brand-color-light);
color: var(--td-brand-color);
font-weight: 500;
.tag-list-left .t-icon {
.tag-list-left .t-icon,
.tag-list-left .tag-hash-icon {
color: var(--td-brand-color);
}
@@ -2319,9 +2353,7 @@ async function createNewSession(value: string): Promise<void> {
}
.tag-count {
background: var(--td-success-color-light);
color: var(--td-brand-color);
font-weight: 600;
}
}
@@ -2365,22 +2397,22 @@ async function createNewSession(value: string): Promise<void> {
}
:deep(.tag-action-btn.confirm) {
background: var(--td-success-color-light);
color: var(--td-brand-color-active);
&:hover {
background: var(--td-success-color-light);
color: var(--td-success-color);
}
}
:deep(.tag-action-btn.cancel) {
background: var(--td-bg-color-secondarycontainer);
background: transparent;
color: var(--td-text-color-secondary);
&:hover {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-secondary);
color: var(--td-brand-color);
}
}
:deep(.tag-action-btn.cancel) {
background: transparent;
color: var(--td-text-color-secondary);
&:hover {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-error-color);
}
}
}
@@ -2391,48 +2423,38 @@ async function createNewSession(value: string): Promise<void> {
max-width: 100%;
:deep(.t-input) {
font-size: 12px;
font-size: 13px;
background-color: transparent;
border: none;
border-bottom: 1px solid var(--td-component-stroke);
border-radius: 0;
box-shadow: none;
padding-left: 0;
padding-right: 0;
padding: 0;
}
:deep(.t-input__wrap) {
background-color: transparent;
border: none;
border-bottom: 1px solid var(--td-component-stroke);
border-radius: 0;
box-shadow: none;
}
:deep(.t-input__inner) {
padding-left: 0;
padding-right: 0;
padding: 0;
color: var(--td-text-color-primary);
caret-color: var(--td-text-color-primary);
caret-color: var(--td-brand-color);
}
:deep(.t-input:hover),
:deep(.t-input.t-is-focused),
:deep(.t-input__wrap:hover),
:deep(.t-input__wrap.t-is-focused) {
border-bottom-color: var(--td-success-color);
border-color: transparent;
}
}
.tag-more {
display: flex;
align-items: center;
opacity: 0;
transition: opacity 0.2s ease;
}
&:hover .tag-more {
opacity: 1;
}
.tag-more-btn {
@@ -2442,7 +2464,7 @@ async function createNewSession(value: string): Promise<void> {
align-items: center;
justify-content: center;
border-radius: 4px;
color: var(--td-text-color-secondary);
color: var(--td-text-color-placeholder);
transition: all 0.2s ease;
&:hover {
@@ -2456,7 +2478,7 @@ async function createNewSession(value: string): Promise<void> {
text-align: center;
padding: 10px 6px;
color: var(--td-text-color-placeholder);
font-size: 11px;
font-size: 12px;
}
}
}
@@ -2507,9 +2529,10 @@ async function createNewSession(value: string): Promise<void> {
display: flex;
flex-direction: column;
min-height: 0;
padding: 12px;
padding: 0 0 0 16px;
border: none;
overflow: hidden;
background: var(--td-bg-color-container);
background: transparent;
}
.doc-card-area {
@@ -2551,29 +2574,33 @@ async function createNewSession(value: string): Promise<void> {
:deep(.t-input) {
font-size: 13px;
background-color: var(--td-bg-color-container);
border-color: var(--td-component-stroke);
background-color: var(--td-bg-color-secondarycontainer);
border-color: transparent;
border-radius: 6px;
box-shadow: none !important;
&:hover,
&:focus,
&.t-is-focused {
border-color: var(--td-brand-color);
background-color: var(--td-bg-color-container);
box-shadow: none !important;
}
}
:deep(.t-select) {
.t-input {
font-size: 13px;
background-color: var(--td-bg-color-container);
border-color: var(--td-component-stroke);
background-color: var(--td-bg-color-secondarycontainer);
border-color: transparent;
border-radius: 6px;
box-shadow: none !important;
&:hover,
&.t-is-focused {
border-color: var(--td-brand-color);
background-color: var(--td-bg-color-container);
box-shadow: none !important;
}
}
}
@@ -185,7 +185,7 @@
</t-tooltip>
</div>
</div>
<div class="bottom-right">
<div v-if="!authStore.isLiteMode" class="bottom-right">
<div class="personal-source">
<t-icon name="user" size="14px" />
<span>{{ $t('knowledgeList.myLabel') }}</span>
@@ -359,7 +359,7 @@
</t-tooltip>
</div>
</div>
<div class="bottom-right">
<div v-if="!authStore.isLiteMode" class="bottom-right">
<div class="personal-source">
<t-icon name="user" size="14px" />
<span>{{ $t('knowledgeList.myLabel') }}</span>
@@ -23,8 +23,13 @@
:disabled="!props.kbId"
@click.stop="handleNavigateToCurrentKB"
>
<span>{{ kbInfo?.name || '--' }}</span>
<t-icon name="chevron-down" />
<template v-if="!kbInfo">
<t-skeleton animation="gradient" :row-col="[{ width: '120px', height: '20px' }]" />
</template>
<template v-else>
<span>{{ kbInfo.name }}</span>
<t-icon name="chevron-down" />
</template>
</button>
</t-dropdown>
<button
@@ -34,13 +39,18 @@
:disabled="!props.kbId"
@click="handleNavigateToCurrentKB"
>
{{ kbInfo?.name || '--' }}
<template v-if="!kbInfo">
<t-skeleton animation="gradient" :row-col="[{ width: '120px', height: '20px' }]" />
</template>
<template v-else>
{{ kbInfo.name }}
</template>
</button>
<t-icon name="chevron-right" class="breadcrumb-separator" />
<span class="breadcrumb-current">{{ $t('knowledgeEditor.faq.title') }}</span>
</h2>
<!-- 身份与最后更新:紧凑单行,置于标题行右侧,悬停显示权限说明 -->
<div v-if="kbInfo" class="faq-access-meta">
<div v-if="kbInfo && !authStore.isLiteMode" class="faq-access-meta">
<t-tooltip :content="accessPermissionSummary" placement="top">
<span class="faq-access-meta-inner">
<t-tag size="small" :theme="isOwner ? 'success' : (effectiveKBPermission === 'admin' ? 'primary' : effectiveKBPermission === 'editor' ? 'warning' : 'default')" class="faq-access-role-tag">
@@ -206,7 +216,7 @@
:title="$t('knowledgeBase.tagCreateAction')"
@click="startCreateTag"
>
<span class="create-tag-plus" aria-hidden="true">+</span>
<t-icon name="add" />
</t-button>
</div>
</div>
@@ -222,13 +232,20 @@
</template>
</t-input>
</div>
<t-loading :loading="tagLoading" size="small">
<div ref="tagListRef" class="faq-tag-list" @scroll="handleTagListScroll">
<div ref="tagListRef" class="faq-tag-list" @scroll="handleTagListScroll">
<template v-if="tagLoading && !filteredTags.length">
<div v-for="n in 8" :key="'skel-tag-'+n" class="faq-tag-item" style="cursor: default; pointer-events: none;">
<div class="faq-tag-left" style="gap: 12px; width: 100%;">
<t-skeleton animation="gradient" :row-col="[{ width: '80%', height: '18px' }]" />
</div>
</div>
</template>
<template v-else>
<div v-if="creatingTag" class="faq-tag-item tag-editing" @click.stop>
<div class="faq-tag-left">
<t-icon name="folder" size="18px" />
<div class="tag-edit-input">
<t-input
<div class="faq-tag-left">
<span class="tag-hash-icon">#</span>
<div class="tag-edit-input">
<t-input
ref="newTagInputRef"
v-model="newTagName"
size="small"
@@ -270,9 +287,9 @@
:class="{ active: selectedTagId === tag.seq_id, editing: editingTagId === tag.id }"
@click="handleTagRowClick(tag.seq_id)"
>
<div class="faq-tag-left">
<t-icon name="folder" size="18px" />
<template v-if="editingTagId === tag.id">
<div class="faq-tag-left">
<span class="tag-hash-icon">#</span>
<template v-if="editingTagId === tag.id">
<div class="tag-edit-input" @click.stop>
<t-input
:ref="setEditingTagInputRefByTag(tag.id)"
@@ -343,8 +360,8 @@
<div v-if="tagLoadingMore" class="tag-loading-more">
<t-loading size="small" />
</div>
</div>
</t-loading>
</template>
</div>
</aside>
<div class="faq-card-area">
@@ -3286,22 +3303,21 @@ watch(() => entries.value.map(e => ({
display: flex;
flex: 1;
min-height: 0;
background: var(--td-bg-color-container);
border: 1px solid var(--td-component-stroke);
border-radius: 10px;
overflow: hidden;
background: transparent;
border: none;
}
// 与列表页筛选区、文档型知识库标签栏一致:白底卡片感
// 贴近整体系统设计语言的极简侧栏
.faq-tag-panel {
width: 200px;
background: var(--td-bg-color-container);
width: 180px;
background: transparent;
border: none;
border-right: 1px solid var(--td-component-stroke);
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
padding: 16px;
flex-shrink: 0;
box-shadow: 1px 0 0 rgba(0, 0, 0, 0.02);
padding: 0 16px 0 0;
display: flex;
flex-direction: column;
flex-shrink: 0;
max-height: 100%;
min-height: 0;
overflow: hidden;
@@ -3320,77 +3336,88 @@ watch(() => entries.value.map(e => ({
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
margin-bottom: 12px;
padding: 0 4px;
color: var(--td-text-color-primary);
.sidebar-title {
display: flex;
align-items: baseline;
gap: 4px;
font-size: 13px;
gap: 6px;
font-size: 14px;
font-weight: 600;
letter-spacing: 0.5px;
.sidebar-count {
font-size: 12px;
color: var(--td-text-color-secondary);
color: var(--td-text-color-placeholder);
font-weight: 400;
}
}
.sidebar-actions {
display: flex;
gap: 6px;
color: var(--td-text-color-placeholder);
align-items: center;
.create-tag-btn {
width: 24px;
height: 24px;
padding: 0;
border-radius: 6px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
font-weight: 600;
color: var(--td-success-color);
line-height: 1;
transition: background 0.2s ease, color 0.2s ease;
color: var(--td-text-color-secondary);
transition: all 0.2s ease;
.t-icon {
font-size: 16px;
}
&:hover {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-brand-color-active);
color: var(--td-brand-color);
}
}
.create-tag-plus {
line-height: 1;
}
.sidebar-action-icon {
width: 24px;
height: 24px;
border-radius: 6px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
color: var(--td-text-color-secondary);
cursor: pointer;
transition: background 0.2s ease, color 0.2s ease;
transition: all 0.2s ease;
&:hover {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-success-color);
color: var(--td-brand-color);
}
}
}
}
.tag-search-bar {
margin-bottom: 10px;
margin-bottom: 12px;
padding: 0 4px;
:deep(.t-input) {
font-size: 12px;
background-color: var(--td-bg-color-container);
border-color: var(--td-component-stroke);
font-size: 13px;
background-color: var(--td-bg-color-secondarycontainer);
border-color: transparent;
border-radius: 6px;
box-shadow: none !important;
&:hover,
&:focus,
&.t-is-focused {
border-color: var(--td-brand-color);
background-color: var(--td-bg-color-container);
box-shadow: none !important;
}
}
:deep(.t-input__inner) {
@@ -3427,13 +3454,13 @@ watch(() => entries.value.map(e => ({
display: flex;
align-items: center;
justify-content: space-between;
padding: 9px 12px;
padding: 8px 8px;
border-radius: 6px;
color: var(--td-text-color-primary);
cursor: pointer;
transition: all 0.2s ease;
font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
font-size: 14px;
font-size: 13px;
-webkit-font-smoothing: antialiased;
.faq-tag-left {
@@ -3443,12 +3470,25 @@ watch(() => entries.value.map(e => ({
min-width: 0;
flex: 1;
.t-icon {
.t-icon,
.tag-hash-icon {
flex-shrink: 0;
color: var(--td-text-color-secondary);
font-size: 14px;
transition: color 0.2s ease;
}
.t-icon {
font-size: 16px;
}
.tag-hash-icon {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 16px;
font-weight: 500;
width: 16px;
text-align: center;
display: inline-block;
}
}
.tag-name {
@@ -3458,10 +3498,9 @@ watch(() => entries.value.map(e => ({
text-overflow: ellipsis;
white-space: nowrap;
font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
font-size: 14px;
font-weight: 450;
font-size: 13px;
font-weight: 400;
line-height: 1.4;
letter-spacing: 0.01em;
}
.faq-tag-right {
@@ -3474,37 +3513,34 @@ watch(() => entries.value.map(e => ({
.faq-tag-count {
font-size: 12px;
color: var(--td-text-color-secondary);
font-weight: 500;
min-width: 28px;
padding: 3px 7px;
border-radius: 8px;
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-placeholder);
font-weight: 400;
transition: all 0.2s ease;
text-align: center;
box-sizing: border-box;
text-align: right;
padding-left: 8px;
background: transparent;
}
&:hover {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-primary);
.faq-tag-left .t-icon {
color: var(--td-text-color-primary);
.faq-tag-left .t-icon,
.faq-tag-left .tag-hash-icon {
color: var(--td-text-color-secondary);
}
.faq-tag-count {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-primary);
color: var(--td-text-color-secondary);
}
}
&.active {
background: var(--td-success-color-light);
background: var(--td-brand-color-light);
color: var(--td-brand-color);
font-weight: 500;
.faq-tag-left .t-icon {
.faq-tag-left .t-icon,
.faq-tag-left .tag-hash-icon {
color: var(--td-brand-color);
}
@@ -3513,13 +3549,7 @@ watch(() => entries.value.map(e => ({
}
.faq-tag-count {
background: var(--td-success-color-light);
color: var(--td-brand-color);
font-weight: 600;
}
&:hover {
background: var(--td-success-color-light);
}
}
@@ -3563,22 +3593,22 @@ watch(() => entries.value.map(e => ({
}
:deep(.tag-action-btn.confirm) {
background: var(--td-success-color-light);
color: var(--td-brand-color-active);
&:hover {
background: var(--td-success-color-light);
color: var(--td-success-color);
}
}
:deep(.tag-action-btn.cancel) {
background: var(--td-bg-color-secondarycontainer);
background: transparent;
color: var(--td-text-color-secondary);
&:hover {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-secondary);
color: var(--td-brand-color);
}
}
:deep(.tag-action-btn.cancel) {
background: transparent;
color: var(--td-text-color-secondary);
&:hover {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-error-color);
}
}
}
@@ -3589,39 +3619,40 @@ watch(() => entries.value.map(e => ({
max-width: 100%;
:deep(.t-input) {
font-size: 12px;
font-size: 13px;
background-color: transparent;
border: none;
border-bottom: 1px solid var(--td-component-stroke);
border-radius: 0;
box-shadow: none;
padding-left: 0;
padding-right: 0;
padding: 0;
}
:deep(.t-input__wrap) {
background-color: transparent;
border: none;
border-bottom: 1px solid var(--td-component-stroke);
border-radius: 0;
box-shadow: none;
}
:deep(.t-input__inner) {
padding-left: 0;
padding-right: 0;
padding: 0;
color: var(--td-text-color-primary);
caret-color: var(--td-text-color-primary);
caret-color: var(--td-brand-color);
}
:deep(.t-input:hover),
:deep(.t-input.t-is-focused),
:deep(.t-input__wrap:hover),
:deep(.t-input__wrap.t-is-focused) {
border-bottom-color: var(--td-success-color);
border-color: transparent;
}
}
.tag-more {
display: flex;
align-items: center;
}
.tag-more-btn {
width: 22px;
height: 22px;
@@ -3629,23 +3660,15 @@ watch(() => entries.value.map(e => ({
align-items: center;
justify-content: center;
border-radius: 4px;
color: var(--td-text-color-secondary);
color: var(--td-text-color-placeholder);
transition: all 0.2s ease;
opacity: 0.6;
&:hover {
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-secondary);
opacity: 1;
}
}
.tag-more {
display: flex;
align-items: center;
}
.tag-more-placeholder {
width: 22px;
height: 22px;
@@ -3665,12 +3688,13 @@ watch(() => entries.value.map(e => ({
.faq-card-area {
flex: 1;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
padding: 12px;
min-height: 0;
padding: 0 0 0 16px;
border: none;
overflow: hidden;
background: var(--td-bg-color-container);
background: transparent;
}
.faq-search-bar {
@@ -3695,7 +3719,7 @@ watch(() => entries.value.map(e => ({
background: transparent;
border: none;
&:hover {
color: var(--td-text-color-secondary);
color: var(--td-brand-color);
background: var(--td-bg-color-secondarycontainer);
}
}
@@ -3703,15 +3727,17 @@ watch(() => entries.value.map(e => ({
:deep(.t-input) {
font-size: 13px;
background-color: var(--td-bg-color-container);
border-color: var(--td-component-stroke);
background-color: var(--td-bg-color-secondarycontainer);
border-color: transparent;
border-radius: 6px;
box-shadow: none !important;
&:hover,
&:focus,
&.t-is-focused {
border-color: var(--td-brand-color);
background-color: var(--td-bg-color-container);
border-color: var(--td-success-color);
box-shadow: none !important;
}
}