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