feat: enhance sidebar functionality and UI responsiveness
- Implemented sidebar collapse and expand functionality, allowing users to toggle the sidebar visibility for a more streamlined interface. - Updated the `uiStore` to manage sidebar state, persisting the collapsed state in local storage for user preference. - Enhanced the `menu.vue` and `UserMenu.vue` components to adapt their layout based on the sidebar state, improving usability. - Added corresponding translations for sidebar actions in English, Korean, Russian, and Chinese, ensuring accessibility for diverse users. - Refined CSS styles to support the new sidebar behavior, enhancing overall UI consistency and responsiveness. These changes significantly improve the user experience by providing a more flexible and user-friendly navigation system.
This commit is contained in:
@@ -115,4 +115,17 @@
|
||||
}
|
||||
:root[theme-mode="dark"] .more-wrap:hover .more-icon {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
/* 覆盖浏览器自动填充的背景色(Chrome 会强制加浅蓝/浅黄底色) */
|
||||
input:-webkit-autofill,
|
||||
input:-webkit-autofill:hover,
|
||||
input:-webkit-autofill:focus,
|
||||
input:-webkit-autofill:active,
|
||||
textarea:-webkit-autofill,
|
||||
select:-webkit-autofill {
|
||||
-webkit-box-shadow: 0 0 0 1000px var(--td-bg-color-container) inset !important;
|
||||
-webkit-text-fill-color: var(--td-text-color-primary) !important;
|
||||
caret-color: var(--td-text-color-primary) !important;
|
||||
transition: background-color 5000s ease-in-out 0s;
|
||||
}
|
||||
@@ -1,16 +1,18 @@
|
||||
<template>
|
||||
<div class="user-menu" ref="menuRef">
|
||||
<div class="user-menu" :class="{ 'user-menu--collapsed': uiStore.sidebarCollapsed }" ref="menuRef">
|
||||
<!-- 用户按钮 -->
|
||||
<div class="user-button" @click="toggleMenu">
|
||||
<div class="user-avatar">
|
||||
<img v-if="userAvatar" :src="userAvatar" :alt="$t('common.avatar')" />
|
||||
<span v-else class="avatar-placeholder">{{ userInitial }}</span>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<div class="user-name">{{ userName }}</div>
|
||||
<div class="user-email">{{ userEmail }}</div>
|
||||
</div>
|
||||
<t-icon :name="menuVisible ? 'chevron-up' : 'chevron-down'" class="dropdown-icon" />
|
||||
<template v-if="!uiStore.sidebarCollapsed">
|
||||
<div class="user-info">
|
||||
<div class="user-name">{{ userName }}</div>
|
||||
<div class="user-email">{{ userEmail }}</div>
|
||||
</div>
|
||||
<t-icon :name="menuVisible ? 'chevron-up' : 'chevron-down'" class="dropdown-icon" />
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<!-- 下拉菜单 -->
|
||||
@@ -256,6 +258,30 @@ onUnmounted(() => {
|
||||
.user-menu {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
||||
&--collapsed {
|
||||
.user-button {
|
||||
justify-content: center;
|
||||
padding: 8px;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.user-avatar {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
|
||||
.avatar-placeholder {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.user-dropdown {
|
||||
left: calc(100% + 8px);
|
||||
bottom: 0;
|
||||
right: auto;
|
||||
min-width: 200px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.user-button {
|
||||
@@ -287,6 +313,7 @@ onUnmounted(() => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: width 0.2s ease, height 0.2s ease;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
|
||||
@@ -1,15 +1,48 @@
|
||||
<template>
|
||||
<div class="aside_box">
|
||||
<div class="logo_box" @click="router.push('/platform/knowledge-bases')" style="cursor: pointer;">
|
||||
<img class="logo" src="@/assets/img/weknora.png" alt="">
|
||||
<div class="aside_box" :class="{ 'aside_box--collapsed': uiStore.sidebarCollapsed }">
|
||||
<!-- 展开时:Logo + 折叠按钮同行 -->
|
||||
<div class="logo_row" v-if="!uiStore.sidebarCollapsed">
|
||||
<div class="logo_box" @click="router.push('/platform/knowledge-bases')" style="cursor: pointer;">
|
||||
<img class="logo" src="@/assets/img/weknora.png" alt="">
|
||||
</div>
|
||||
<div class="sidebar-toggle"
|
||||
@click="uiStore.toggleSidebar"
|
||||
:title="t('menu.collapseSidebar')">
|
||||
<svg viewBox="0 0 20 20" width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="1.5" y="1.5" width="17" height="17" rx="3" stroke="currentColor" stroke-width="1.2" />
|
||||
<line x1="7.5" y1="1.5" x2="7.5" y2="18.5" stroke="currentColor" stroke-width="1.2" />
|
||||
<line x1="4" y1="7.5" x2="4" y2="12.5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 折叠时:展开按钮 -->
|
||||
<t-tooltip v-else :content="t('menu.expandSidebar')" placement="right">
|
||||
<div class="menu_item sidebar-toggle-item" @click="uiStore.toggleSidebar">
|
||||
<div class="menu_item-box">
|
||||
<div class="menu_icon">
|
||||
<svg class="icon" viewBox="0 0 20 20" width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="1.5" y="1.5" width="17" height="17" rx="3" stroke="currentColor" stroke-width="1.2" />
|
||||
<line x1="7.5" y1="1.5" x2="7.5" y2="18.5" stroke="currentColor" stroke-width="1.2" />
|
||||
<line x1="5" y1="10" x2="3" y2="8" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" />
|
||||
<line x1="5" y1="10" x2="3" y2="12" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t-tooltip>
|
||||
|
||||
<!-- 租户选择器:仅在用户可切换租户时显示 -->
|
||||
<TenantSelector v-if="canAccessAllTenants" />
|
||||
<TenantSelector v-if="canAccessAllTenants && !uiStore.sidebarCollapsed" />
|
||||
|
||||
<!-- 折叠时右侧拖拽展开手柄 -->
|
||||
<div v-if="uiStore.sidebarCollapsed"
|
||||
class="sidebar-drag-handle"
|
||||
@mousedown="onDragHandleMouseDown" />
|
||||
|
||||
<!-- 上半部分:知识库和对话 -->
|
||||
<div class="menu_top">
|
||||
<div class="menu_box" :class="{ 'has-submenu': item.children }" v-for="(item, index) in topMenuItems" :key="index">
|
||||
<t-tooltip :content="item.title" placement="right" :disabled="!uiStore.sidebarCollapsed">
|
||||
<div @click="handleMenuClick(item.path)"
|
||||
@mouseenter="mouseenteMenu(item.path)" @mouseleave="mouseleaveMenu(item.path)"
|
||||
:class="['menu_item', item.childrenPath && item.childrenPath == currentpath ? 'menu_item_c_active' : isMenuItemActive(item.path) ? 'menu_item_active' : '']">
|
||||
@@ -17,13 +50,16 @@
|
||||
<div class="menu_icon">
|
||||
<img class="icon" :src="getImgSrc(item.icon == 'zhishiku' ? knowledgeIcon : item.icon == 'search' ? searchIcon : item.icon == 'agent' ? agentIcon : item.icon == 'organization' ? organizationIcon : item.icon == 'logout' ? logoutIcon : item.icon == 'setting' ? settingIcon : prefixIcon)" alt="">
|
||||
</div>
|
||||
<span class="menu_title" :title="item.title">{{ item.title }}</span>
|
||||
<span v-if="item.path === 'organizations' && orgStore.totalPendingJoinRequestCount > 0" class="menu-pending-badge" :title="t('organization.settings.pendingJoinRequestsBadge')">{{ orgStore.totalPendingJoinRequestCount }}</span>
|
||||
<span v-if="item.path === 'creatChat' && batchMode" class="batch-cancel-hint" @click.stop="exitBatchMode">{{ t('batchManage.cancel') }}</span>
|
||||
<t-icon v-else-if="item.path === 'creatChat'" name="add" class="menu-create-hint" />
|
||||
<template v-if="!uiStore.sidebarCollapsed">
|
||||
<span class="menu_title" :title="item.title">{{ item.title }}</span>
|
||||
<span v-if="item.path === 'organizations' && orgStore.totalPendingJoinRequestCount > 0" class="menu-pending-badge" :title="t('organization.settings.pendingJoinRequestsBadge')">{{ orgStore.totalPendingJoinRequestCount }}</span>
|
||||
<span v-if="item.path === 'creatChat' && batchMode" class="batch-cancel-hint" @click.stop="exitBatchMode">{{ t('batchManage.cancel') }}</span>
|
||||
<t-icon v-else-if="item.path === 'creatChat'" name="add" class="menu-create-hint" />
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
<div ref="submenuscrollContainer" @scroll="handleScroll" class="submenu" v-if="item.children">
|
||||
</t-tooltip>
|
||||
<div ref="submenuscrollContainer" @scroll="handleScroll" class="submenu" v-if="item.children && !uiStore.sidebarCollapsed">
|
||||
<template v-for="(group, groupIndex) in groupedSessions" :key="groupIndex">
|
||||
<div class="timeline_header">{{ group.label }}</div>
|
||||
<div class="submenu_item_p" v-for="(subitem, subindex) in group.items" :key="subitem.id">
|
||||
@@ -53,7 +89,7 @@
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
<div v-if="batchMode && item.path === 'creatChat'" class="batch-inline-footer">
|
||||
<div v-if="batchMode && item.path === 'creatChat' && !uiStore.sidebarCollapsed" class="batch-inline-footer">
|
||||
<div class="batch-footer-left">
|
||||
<t-checkbox
|
||||
:checked="isAllBatchSelected"
|
||||
@@ -670,11 +706,32 @@ const mouseenteMenu = (path: string) => {
|
||||
const mouseleaveMenu = (path: string) => {
|
||||
}
|
||||
|
||||
const onDragHandleMouseDown = (e: MouseEvent) => {
|
||||
e.preventDefault()
|
||||
const startX = e.clientX
|
||||
const expandThreshold = 40
|
||||
|
||||
const onMouseMove = (ev: MouseEvent) => {
|
||||
if (ev.clientX - startX > expandThreshold) {
|
||||
uiStore.expandSidebar()
|
||||
cleanup()
|
||||
}
|
||||
}
|
||||
const onMouseUp = () => cleanup()
|
||||
const cleanup = () => {
|
||||
document.removeEventListener('mousemove', onMouseMove)
|
||||
document.removeEventListener('mouseup', onMouseUp)
|
||||
}
|
||||
document.addEventListener('mousemove', onMouseMove)
|
||||
document.addEventListener('mouseup', onMouseUp)
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.aside_box {
|
||||
min-width: 260px;
|
||||
width: 260px;
|
||||
padding: 8px;
|
||||
background: var(--td-bg-color-sidebar);
|
||||
box-sizing: border-box;
|
||||
@@ -682,18 +739,85 @@ const mouseleaveMenu = (path: string) => {
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
/* 与右侧内容区统一的细分界,减少割裂感 */
|
||||
border-right: 1px solid var(--td-component-stroke);
|
||||
box-shadow: 1px 0 0 rgba(0, 0, 0, 0.02);
|
||||
transition: width 0.25s ease, min-width 0.25s ease;
|
||||
position: relative;
|
||||
|
||||
.logo_box {
|
||||
height: 80px;
|
||||
&--collapsed {
|
||||
min-width: 60px;
|
||||
width: 60px;
|
||||
padding: 8px 4px;
|
||||
overflow: visible;
|
||||
|
||||
.menu_item {
|
||||
justify-content: center;
|
||||
padding: 13px 0;
|
||||
.menu_item-box {
|
||||
justify-content: center;
|
||||
width: auto;
|
||||
}
|
||||
.menu_icon {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.menu_bottom {
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.logo_row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 56px;
|
||||
flex-shrink: 0;
|
||||
padding: 0 8px 0 16px;
|
||||
}
|
||||
|
||||
.sidebar-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
color: var(--td-text-color-secondary);
|
||||
border-radius: 4px;
|
||||
transition: background-color 0.2s ease;
|
||||
box-sizing: border-box;
|
||||
|
||||
&:hover {
|
||||
background: var(--td-bg-color-container-hover);
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-drag-handle {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: -3px;
|
||||
width: 6px;
|
||||
height: 100%;
|
||||
cursor: ew-resize;
|
||||
z-index: 10;
|
||||
|
||||
&:hover {
|
||||
background: var(--td-brand-color-light);
|
||||
}
|
||||
}
|
||||
|
||||
.logo_box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
.logo{
|
||||
width: 134px;
|
||||
height: auto;
|
||||
margin-left: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1121,20 +1245,20 @@ html[theme-mode="dark"] .aside_box .logo_box .logo {
|
||||
}
|
||||
|
||||
// Dark mode: make SVG icons match text color (loaded via <img>, currentColor won't work)
|
||||
html[theme-mode="dark"] .aside_box .menu_icon .icon {
|
||||
html[theme-mode="dark"] .aside_box .menu_icon img.icon {
|
||||
filter: invert(1);
|
||||
opacity: 0.55;
|
||||
}
|
||||
// Hover state: brighter icon like text
|
||||
html[theme-mode="dark"] .aside_box .menu_item:hover .menu_icon .icon {
|
||||
html[theme-mode="dark"] .aside_box .menu_item:hover .menu_icon img.icon {
|
||||
opacity: 0.9;
|
||||
}
|
||||
// menu_item_c_active: text is primary, so icon should match
|
||||
html[theme-mode="dark"] .aside_box .menu_item_c_active .menu_icon .icon {
|
||||
html[theme-mode="dark"] .aside_box .menu_item_c_active .menu_icon img.icon {
|
||||
opacity: 0.9;
|
||||
}
|
||||
// Active (green) icons should not be inverted
|
||||
html[theme-mode="dark"] .aside_box .menu_item_active .menu_icon .icon {
|
||||
html[theme-mode="dark"] .aside_box .menu_item_active .menu_icon img.icon {
|
||||
filter: none;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,8 @@ export default {
|
||||
confirmLogout: 'Are you sure you want to logout?',
|
||||
systemInfo: 'System Information',
|
||||
knowledgeSearch: 'Knowledge Search',
|
||||
collapseSidebar: 'Collapse Sidebar',
|
||||
expandSidebar: 'Expand Sidebar',
|
||||
},
|
||||
batchManage: {
|
||||
title: 'Manage Conversations',
|
||||
|
||||
@@ -15,6 +15,8 @@ export default {
|
||||
confirmLogout: "정말 로그아웃 하시겠습니까?",
|
||||
systemInfo: "시스템 정보",
|
||||
knowledgeSearch: "지식 검색",
|
||||
collapseSidebar: "사이드바 접기",
|
||||
expandSidebar: "사이드바 펼치기",
|
||||
},
|
||||
batchManage: {
|
||||
title: "대화 관리",
|
||||
|
||||
@@ -13,6 +13,8 @@ export default {
|
||||
confirmLogout: 'Вы уверены, что хотите выйти?',
|
||||
systemInfo: 'Информация о системе',
|
||||
knowledgeSearch: 'Поиск знаний',
|
||||
collapseSidebar: 'Свернуть боковую панель',
|
||||
expandSidebar: 'Развернуть боковую панель',
|
||||
},
|
||||
batchManage: {
|
||||
title: 'Управление диалогами',
|
||||
|
||||
@@ -15,6 +15,8 @@ export default {
|
||||
confirmLogout: "确定要退出登录吗?",
|
||||
systemInfo: "系统信息",
|
||||
knowledgeSearch: "知识搜索",
|
||||
collapseSidebar: "收起侧边栏",
|
||||
expandSidebar: "展开侧边栏",
|
||||
},
|
||||
batchManage: {
|
||||
title: "管理对话记录",
|
||||
|
||||
@@ -19,7 +19,8 @@ export const useUIStore = defineStore('ui', {
|
||||
manualEditorInitialTitle: '',
|
||||
manualEditorInitialContent: '',
|
||||
manualEditorInitialStatus: 'draft' as 'draft' | 'publish',
|
||||
manualEditorOnSuccess: null as null | ((payload: { kbId: string; knowledgeId: string; status: 'draft' | 'publish' }) => void)
|
||||
manualEditorOnSuccess: null as null | ((payload: { kbId: string; knowledgeId: string; status: 'draft' | 'publish' }) => void),
|
||||
sidebarCollapsed: localStorage.getItem('sidebar_collapsed') === 'true'
|
||||
}),
|
||||
|
||||
actions: {
|
||||
@@ -108,6 +109,21 @@ export const useUIStore = defineStore('ui', {
|
||||
// 设置当前选中的分类ID
|
||||
setSelectedTagId(tagId: string) {
|
||||
this.selectedTagId = tagId
|
||||
},
|
||||
|
||||
toggleSidebar() {
|
||||
this.sidebarCollapsed = !this.sidebarCollapsed
|
||||
localStorage.setItem('sidebar_collapsed', String(this.sidebarCollapsed))
|
||||
},
|
||||
|
||||
collapseSidebar() {
|
||||
this.sidebarCollapsed = true
|
||||
localStorage.setItem('sidebar_collapsed', 'true')
|
||||
},
|
||||
|
||||
expandSidebar() {
|
||||
this.sidebarCollapsed = false
|
||||
localStorage.setItem('sidebar_collapsed', 'false')
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1211,7 +1211,6 @@ defineExpose({
|
||||
// 普通模式样式
|
||||
&.agent-mode-normal {
|
||||
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(7, 192, 95, 0.04) 100%);
|
||||
border-color: var(--td-success-color-focus);
|
||||
|
||||
&:hover {
|
||||
border-color: var(--td-brand-color);
|
||||
@@ -1230,7 +1229,6 @@ defineExpose({
|
||||
// Agent 模式样式
|
||||
&.agent-mode-agent {
|
||||
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(124, 77, 255, 0.04) 100%);
|
||||
border-color: var(--td-brand-color-focus);
|
||||
|
||||
&:hover {
|
||||
border-color: var(--td-brand-color);
|
||||
|
||||
@@ -1611,3 +1611,110 @@ onMounted(() => {
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="less">
|
||||
html[theme-mode="dark"] {
|
||||
// 整体背景:更深的绿色渐变
|
||||
.login-layout {
|
||||
background: linear-gradient(225deg, #011a14 0%, #032e22 15%, #043a2c 25%, #05503d 38%, #046647 50%, #038a56 65%, #049b60 78%, #06a06a 90%, #07b074 100%);
|
||||
|
||||
&::before {
|
||||
background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
|
||||
radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
|
||||
}
|
||||
}
|
||||
|
||||
// 知识图谱节点:降低发光强度
|
||||
.knowledge-node {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
box-shadow:
|
||||
0 0 10px rgba(255, 255, 255, 0.2),
|
||||
0 0 20px rgba(16, 185, 129, 0.2),
|
||||
inset 0 0 10px rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.knowledge-node:hover {
|
||||
box-shadow:
|
||||
0 0 15px rgba(255, 255, 255, 0.3),
|
||||
0 0 30px rgba(16, 185, 129, 0.3),
|
||||
inset 0 0 15px rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.connection-line {
|
||||
stroke: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
// Logo 反色
|
||||
.header-logo .logo-image {
|
||||
filter: invert(1) hue-rotate(180deg) brightness(1.1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
|
||||
}
|
||||
|
||||
.header-logo:hover .logo-image {
|
||||
filter: invert(1) hue-rotate(180deg) brightness(1.2) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
|
||||
}
|
||||
|
||||
// 顶部链接按钮:降低玻璃效果亮度
|
||||
.header-link {
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
border-color: rgba(255, 255, 255, 0.15);
|
||||
|
||||
&:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-color: rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
}
|
||||
|
||||
.language-switch button {
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
border-color: rgba(255, 255, 255, 0.15);
|
||||
|
||||
&:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-color: rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
}
|
||||
|
||||
// 语言下拉菜单
|
||||
.language-dropdown {
|
||||
background: rgba(36, 36, 36, 0.95) !important;
|
||||
border-color: var(--td-component-stroke) !important;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
|
||||
}
|
||||
|
||||
// 特性标签:降低白色亮度
|
||||
.tag {
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
// 表单卡片
|
||||
.form-card {
|
||||
background: rgba(36, 36, 36, 0.92) !important;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
|
||||
}
|
||||
|
||||
// 表单输入框:确保深色背景下有边框对比
|
||||
.form-content .t-input {
|
||||
background: var(--td-bg-color-page) !important;
|
||||
border-color: rgba(255, 255, 255, 0.1) !important;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--td-brand-color) !important;
|
||||
}
|
||||
|
||||
&:focus-within {
|
||||
border-color: var(--td-brand-color) !important;
|
||||
}
|
||||
}
|
||||
|
||||
// 轮播分页:深色模式下用白色圆点确保可见
|
||||
.screenshot-swiper .swiper-pagination-bullet-active {
|
||||
background: rgba(255, 255, 255, 0.9) !important;
|
||||
}
|
||||
|
||||
// 特性列表图标背景
|
||||
.login-features .feature-icon {
|
||||
background: rgba(6, 176, 77, 0.15);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1439,7 +1439,6 @@ const handleUploadFinishedEvent = (event: Event) => {
|
||||
// 共享知识库根据类型显示不同样式
|
||||
&.kb-type-document {
|
||||
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(7, 192, 95, 0.04) 100%) !important;
|
||||
border-color: var(--td-success-color-focus) !important;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--td-brand-color) !important;
|
||||
@@ -1454,7 +1453,6 @@ const handleUploadFinishedEvent = (event: Event) => {
|
||||
|
||||
&.kb-type-faq {
|
||||
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(0, 82, 217, 0.04) 100%) !important;
|
||||
border-color: var(--td-brand-color-focus) !important;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--td-brand-color) !important;
|
||||
@@ -1614,7 +1612,6 @@ const handleUploadFinishedEvent = (event: Event) => {
|
||||
// 文档类型样式
|
||||
&.kb-type-document {
|
||||
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(7, 192, 95, 0.04) 100%);
|
||||
border-color: var(--td-success-color-focus);
|
||||
|
||||
&:hover {
|
||||
border-color: var(--td-brand-color);
|
||||
@@ -1639,7 +1636,6 @@ const handleUploadFinishedEvent = (event: Event) => {
|
||||
// 问答类型样式
|
||||
&.kb-type-faq {
|
||||
background: linear-gradient(135deg, var(--td-bg-color-container) 0%, rgba(0, 82, 217, 0.04) 100%);
|
||||
border-color: var(--td-brand-color-focus);
|
||||
|
||||
&:hover {
|
||||
border-color: var(--td-brand-color);
|
||||
|
||||
Reference in New Issue
Block a user