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" /> - +