55 :class =" mainStore.navBarExpanded ? 'w-248px' : 'w-64px'"
66 >
77 <button
8- class =" cursor-pointer left-full top-0 bottom-0 w-16px absolute group hocus:outline-transparent"
8+ v-if =" navIsAlwaysCollapsed"
9+ class =" cursor-pointer left-full top-0 bottom-0 w-16px z-1 absolute group hocus:outline-transparent"
910 role =" button"
1011 aria-label =" toggle navigation"
1112 @click =" mainStore.toggleNavBar"
@@ -117,11 +118,12 @@ import { useMainStore } from '../store'
117118import { SideBarNavigationDocument } from ' ../generated/graphql'
118119import CypressLogo from ' @packages/frontend-shared/src/assets/logos/cypress_s.png'
119120import { useI18n } from ' @cy/i18n'
121+ import { useRoute } from ' vue-router'
120122
121123const { t } = useI18n ()
122124
123125const navigation = [
124- { name: ' Specs' , icon: CodeIcon , href: ' /' },
126+ { name: ' Specs' , icon: CodeIcon , href: ' /specs ' },
125127 { name: ' Runs' , icon: RunsIcon , href: ' /runs' },
126128 { name: ' Settings' , icon: SettingsIcon , href: ' /settings' },
127129]
@@ -145,4 +147,8 @@ const bindingsOpen = ref(false)
145147
146148const mainStore = useMainStore ()
147149
150+ const route = useRoute ()
151+
152+ const navIsAlwaysCollapsed = computed (() => route .meta ?.navBarExpandedAllowed !== false )
153+
148154 </script >
0 commit comments