From a37b0b613f24b8ef98adc277ae37f71f9728834e Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 4 Sep 2026 20:06:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BB=9F=E4=B8=80=E4=BE=A7=E6=A0=8F?= =?UTF-8?q?=E6=8A=98=E5=8F=A0=E5=8A=A8=E7=94=BB=E5=B9=B6=E6=94=B6=E5=8F=A3?= =?UTF-8?q?=E6=8B=86=E8=A7=A3=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 66 +++++++++++-------- src/components/ui/WorkspaceTools.vue | 14 ++-- src/features/breakdown/BreakdownPage.vue | 24 +++---- .../breakdown/components/StoryboardList.vue | 2 +- .../breakdown/components/SubjectList.vue | 11 ---- tests/components/ui/layout.test.ts | 25 ++++--- .../features/breakdown/BreakdownPage.test.ts | 2 +- 7 files changed, 70 insertions(+), 74 deletions(-) diff --git a/src/App.vue b/src/App.vue index d2eb7af..33b2593 100644 --- a/src/App.vue +++ b/src/App.vue @@ -51,8 +51,8 @@ const narrowMedia = window.matchMedia(NARROW_NAV) const narrow = ref(narrowMedia.matches) const collapsed = ref(narrow.value) const settingsOpen = ref(false) -/** 窄屏折叠只裁切文字,不把菜单收成图标,避免推挤动画时错位。 */ -const menuCollapsed = computed(() => !narrow.value && collapsed.value) +/** 折叠只裁切文字,不把菜单收成图标,宽屏与窄屏共用同一套宽度动画。 */ +const menuCollapsed = false /** 当前视口下的折叠侧栏宽度。 */ const siderCollapsedWidth = computed(() => (narrow.value ? SIDER_COLLAPSED_WIDTH_NARROW : SIDER_COLLAPSED_WIDTH)) /** 当前视口下的展开侧栏宽度。 */ @@ -163,14 +163,14 @@ const menuOptions = computed(() => [ :style="{ width: (collapsed ? siderCollapsedWidth : siderExpandedWidth) + 'px' }" aria-label="主导航" > - + - 短剧工作台SHORT DRAMA STUDIO @@ -186,7 +186,7 @@ const menuOptions = computed(() => [ :root-indent="navIconIndent" /> - +