From 156f97bf97b4c5096581123b236a602f03d002fe Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Fri, 9 Oct 2026 22:46:48 +0800 Subject: [PATCH] fix(dashboard): keep content frame fixed and remove sidebar customization --- changelogs/unreleased.md | 5 + .../components/shared/SidebarCustomizer.vue | 271 ------------------ .../i18n/locales/en-US/features/settings.json | 10 - .../i18n/locales/ja-JP/features/settings.json | 10 - .../i18n/locales/ru-RU/features/settings.json | 10 - .../i18n/locales/zh-CN/features/settings.json | 10 - dashboard/src/layouts/full/FullLayout.vue | 106 +++---- .../full/vertical-sidebar/sidebarItem.ts | 4 - dashboard/src/utils/sidebarCustomization.js | 195 ------------- dashboard/src/views/Settings.vue | 11 - docs/en/use/webui.md | 5 +- docs/zh/use/webui.md | 5 +- 12 files changed, 48 insertions(+), 594 deletions(-) delete mode 100644 dashboard/src/components/shared/SidebarCustomizer.vue delete mode 100644 dashboard/src/utils/sidebarCustomization.js diff --git a/changelogs/unreleased.md b/changelogs/unreleased.md index 77f5d87b9..c7ef0f03f 100644 --- a/changelogs/unreleased.md +++ b/changelogs/unreleased.md @@ -4,3 +4,8 @@ - Raise the model image input cap from 32 MiB to 64 MiB. Larger originals are skipped before reading image bytes, with a model notice retaining their paths and suggesting the file-reading tool or a smaller upload; accepted inputs still produce images strictly below 512 KiB. - Local Agent input images are always prepared as JPEG/PNG files strictly below 512 KiB. Compliant local images are reused without copying. Transparent previews retain PNG alpha; animations become 3×3 montages. Original attachment paths remain available to tools, and event-owned previews are deleted after use without a shared conversion cache. - Configuration mapping: **Enable image compression** (`provider_settings.image_compress_enabled`) is replaced by always-on preparation; **JPEG quality** (`provider_settings.image_compress_options.quality`) is replaced by automatic size control; **Maximum edge length** is renamed to **Input image maximum edge length** (`provider_settings.image_compress_options.max_size`). User attachments in CUA sessions follow the same limits. + +- WebUI: Keep content corners and borders fixed while pages scroll inside the card. Add 6px right and bottom gaps on desktop; mobile keeps a full-width, flat layout. (#10479) +- WebUI: **System Settings → Appearance → Customize Sidebar → removed**; the sidebar uses the default menu layout. Theme colors and extension collapsing, pinning, and grouping remain available. +- WebUI:页面在内容卡片内部滚动,圆角和边线保持固定。桌面端右侧和底部各保留 6px 间隔,移动端保持全宽平面布局。 (#10479) +- WebUI:**系统设置 → 外观 → 自定义侧边栏 → 已移除**;侧边栏使用默认菜单布局。仍可调整主题颜色,以及折叠、置顶和按插件分组扩展功能。 diff --git a/dashboard/src/components/shared/SidebarCustomizer.vue b/dashboard/src/components/shared/SidebarCustomizer.vue deleted file mode 100644 index 71bf49511..000000000 --- a/dashboard/src/components/shared/SidebarCustomizer.vue +++ /dev/null @@ -1,271 +0,0 @@ - - - - {{ t('features.settings.sidebar.customize.title') }} - - - - - - {{ t('features.settings.sidebar.customize.title') }} - - - - - {{ t('features.settings.sidebar.customize.subtitle') }} - - - - {{ t('features.settings.sidebar.customize.mainItems') }} - - - - - - - {{ t(item.title) }} - - - - - - - - - {{ t('features.settings.sidebar.customize.moreItems') }} - - - - - - - {{ t(item.title) }} - - - - - - - - - - - - {{ t('features.settings.sidebar.customize.reset') }} - - - - {{ t('core.actions.save') }} - - - - - - - - - - diff --git a/dashboard/src/i18n/locales/en-US/features/settings.json b/dashboard/src/i18n/locales/en-US/features/settings.json index 6dfbf7626..aaa552769 100644 --- a/dashboard/src/i18n/locales/en-US/features/settings.json +++ b/dashboard/src/i18n/locales/en-US/features/settings.json @@ -148,16 +148,6 @@ } } }, - "sidebar": { - "title": "Sidebar", - "customize": { - "title": "Customize Sidebar", - "subtitle": "Drag to reorder modules, or move modules in/out of the \"More Features\" group. Settings are saved locally in your browser.", - "reset": "Reset to Default", - "mainItems": "Main Modules", - "moreItems": "More Features" - } - }, "backup": { "dialog": { "title": "Backup Manager" diff --git a/dashboard/src/i18n/locales/ja-JP/features/settings.json b/dashboard/src/i18n/locales/ja-JP/features/settings.json index 4144a7812..384e0ebfb 100644 --- a/dashboard/src/i18n/locales/ja-JP/features/settings.json +++ b/dashboard/src/i18n/locales/ja-JP/features/settings.json @@ -148,16 +148,6 @@ } } }, - "sidebar": { - "title": "サイドバー", - "customize": { - "title": "サイドバーをカスタマイズ", - "subtitle": "ドラッグしてモジュールを並べ替えるか、「その他の機能」グループへ移動またはグループから取り出します。設定はブラウザー内にのみ保存されます。", - "reset": "既定に戻す", - "mainItems": "メインモジュール", - "moreItems": "その他の機能" - } - }, "backup": { "dialog": { "title": "バックアップ管理" diff --git a/dashboard/src/i18n/locales/ru-RU/features/settings.json b/dashboard/src/i18n/locales/ru-RU/features/settings.json index b4b6ec127..408ace4b3 100644 --- a/dashboard/src/i18n/locales/ru-RU/features/settings.json +++ b/dashboard/src/i18n/locales/ru-RU/features/settings.json @@ -148,16 +148,6 @@ } } }, - "sidebar": { - "title": "Боковая панель", - "customize": { - "title": "Настройка меню", - "subtitle": "Перетаскивайте элементы, чтобы изменить их порядок или скрыть в группе «Дополнительно». Настройки сохраняются локально в браузере.", - "reset": "Сбросить порядок", - "mainItems": "Основные разделы", - "moreItems": "Дополнительно" - } - }, "backup": { "dialog": { "title": "Резервное копирование" diff --git a/dashboard/src/i18n/locales/zh-CN/features/settings.json b/dashboard/src/i18n/locales/zh-CN/features/settings.json index eab86c710..276bd8951 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/settings.json +++ b/dashboard/src/i18n/locales/zh-CN/features/settings.json @@ -148,16 +148,6 @@ } } }, - "sidebar": { - "title": "侧边栏", - "customize": { - "title": "自定义侧边栏", - "subtitle": "拖拽以调整模块顺序,或者将模块移入/移出\"更多功能\"分组。设置仅保存在浏览器本地。", - "reset": "恢复默认", - "mainItems": "主要模块", - "moreItems": "更多功能" - } - }, "backup": { "dialog": { "title": "备份管理" diff --git a/dashboard/src/layouts/full/FullLayout.vue b/dashboard/src/layouts/full/FullLayout.vue index 8143c4b5c..ebf9766ec 100644 --- a/dashboard/src/layouts/full/FullLayout.vue +++ b/dashboard/src/layouts/full/FullLayout.vue @@ -127,13 +127,7 @@ onMounted(() => { /> - + { isProviderPageRoute || isPlatformPageRoute, 'fullscreen-container': isFullScreenRoute, }" - :style="{ - height: - isFullScreenRoute || isProviderPageRoute || isPlatformPageRoute - ? '100%' - : 'calc(100% - 8px)', - padding: isFullScreenRoute ? '0' : undefined, - minHeight: - isFullScreenRoute || isProviderPageRoute || isPlatformPageRoute - ? 'unset' - : undefined, - }" > @@ -185,18 +170,6 @@ onMounted(() => {
{{ t('features.settings.sidebar.customize.subtitle') }}