[READ-ONLY] a fast, modern browser for the npm registry

chore: fix navigation to home (#798)

Co-authored-by: Willow (GHOST) <git@willow.sh>

authored by

abeer0
Willow (GHOST)
and committed by
GitHub
a725ea60 ff63e336

+18 -10
+18 -10
app/components/AppHeader.vue
··· 194 194 <div class="absolute inset-0 bg-bg/80 backdrop-blur-md" /> 195 195 <nav 196 196 :aria-label="$t('nav.main_navigation')" 197 - class="relative container min-h-14 flex items-center gap-2 z-1" 198 - :class="isOnHomePage ? 'justify-end' : 'justify-between'" 197 + class="relative container min-h-14 flex items-center gap-2 z-1 justify-end" 199 198 > 200 - <!-- Mobile: Logo + search button (expands search, doesn't navigate) --> 201 - <button 199 + <!-- Mobile: Logo (navigates home) --> 200 + <NuxtLink 202 201 v-if="!isSearchExpanded && !isOnHomePage" 203 - type="button" 204 - class="sm:hidden flex-shrink-0 inline-flex items-center gap-2 font-mono text-lg font-medium text-fg hover:text-fg transition-colors duration-200 rounded" 205 - :aria-label="$t('nav.tap_to_search')" 206 - @click="expandMobileSearch" 202 + to="/" 203 + :aria-label="$t('header.home')" 204 + class="sm:hidden flex-shrink-0 font-mono text-lg font-medium text-fg hover:text-fg transition-colors duration-200 focus-ring" 207 205 > 208 206 <AppLogo class="w-8 h-8 rounded-lg" /> 209 - <span class="i-carbon:search w-4 h-4 text-fg-subtle" aria-hidden="true" /> 210 - </button> 207 + </NuxtLink> 211 208 212 209 <!-- Desktop: Logo (navigates home) --> 213 210 <div v-if="showLogo" class="hidden sm:flex flex-shrink-0 items-center"> ··· 274 271 275 272 <HeaderAccountMenu /> 276 273 </div> 274 + 275 + <!-- Mobile: Search button (expands search) --> 276 + <ButtonBase 277 + type="button" 278 + class="sm:hidden ms-auto" 279 + :aria-label="$t('nav.tap_to_search')" 280 + :aria-expanded="showMobileMenu" 281 + @click="expandMobileSearch" 282 + v-if="!isSearchExpanded && !isOnHomePage" 283 + classicon="i-carbon:search" 284 + /> 277 285 278 286 <!-- Mobile: Menu button (always visible, click to open menu) --> 279 287 <ButtonBase