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:
wizardchen
2026-03-05 13:30:53 +08:00
committed by lyingbug
parent 00bf0460cc
commit 5d90019fd0
11 changed files with 320 additions and 31 deletions
@@ -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);