@@ -467,66 +467,10 @@ function handleClick(event: MouseEvent) {
467467 </ul >
468468 </template >
469469 </ClientOnly >
470-
471- <!-- Internal navigation: Docs + Code + Compare (hidden on mobile, shown in external links instead) -->
472- <nav
473- v-if =" displayVersion"
474- :aria-label =" $t('package.navigation')"
475- class =" hidden sm:flex items-center gap-0.5 p-0.5 bg-bg-subtle border border-border-subtle rounded-md shrink-0 ms-auto self-center"
476- >
477- <NuxtLink
478- v-if =" docsLink"
479- :to =" docsLink"
480- class =" px-2 py-1.5 font-mono text-xs rounded transition-colors duration-150 border border-transparent text-fg-subtle hover:text-fg hover:bg-bg hover:shadow hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 inline-flex items-center gap-1.5"
481- aria-keyshortcuts =" d"
482- >
483- <span class =" i-carbon:document w-3 h-3" aria-hidden =" true" />
484- {{ $t('package.links.docs') }}
485- <kbd
486- class =" inline-flex items-center justify-center w-4 h-4 text-xs bg-bg-muted border border-border rounded"
487- aria-hidden =" true"
488- >
489- d
490- </kbd >
491- </NuxtLink >
492- <NuxtLink
493- :to =" {
494- name: 'code',
495- params: {
496- path: [...pkg.name.split('/'), 'v', displayVersion.version],
497- },
498- }"
499- class =" px-2 py-1.5 font-mono text-xs rounded transition-colors duration-150 border border-transparent text-fg-subtle hover:text-fg hover:bg-bg hover:shadow hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 inline-flex items-center gap-1.5"
500- aria-keyshortcuts =" ."
501- >
502- <span class =" i-carbon:code w-3 h-3" aria-hidden =" true" />
503- {{ $t('package.links.code') }}
504- <kbd
505- class =" inline-flex items-center justify-center w-4 h-4 text-xs bg-bg-muted border border-border rounded"
506- aria-hidden =" true"
507- >
508- .
509- </kbd >
510- </NuxtLink >
511- <NuxtLink
512- :to =" { path: '/compare', query: { packages: pkg.name } }"
513- class =" px-2 py-1.5 font-mono text-xs rounded transition-colors duration-150 border border-transparent text-fg-subtle hover:text-fg hover:bg-bg hover:shadow hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 inline-flex items-center gap-1.5"
514- aria-keyshortcuts =" c"
515- >
516- <span class =" i-carbon:compare w-3 h-3" aria-hidden =" true" />
517- {{ $t('package.links.compare') }}
518- <kbd
519- class =" inline-flex items-center justify-center w-4 h-4 text-xs bg-bg-muted border border-border rounded"
520- aria-hidden =" true"
521- >
522- c
523- </kbd >
524- </NuxtLink >
525- </nav >
526470 </div >
527471
528472 <!-- Description container with min-height to prevent CLS -->
529- <div class =" max-w-2xl min-h-[4.5rem]" >
473+ <div class =" max-w-2xl ms-1 min-h-[4.5rem]" >
530474 <p v-if =" pkg.description" class =" text-fg-muted text-base m-0" >
531475 <MarkdownText :text =" pkg.description" :package-name =" pkg.name" />
532476 </p >
@@ -535,8 +479,64 @@ function handleClick(event: MouseEvent) {
535479 </p >
536480 </div >
537481
482+ <!-- Internal navigation: Docs + Code + Compare (hidden on mobile, shown in external links instead) -->
483+ <nav
484+ v-if =" displayVersion"
485+ :aria-label =" $t('package.navigation')"
486+ class =" hidden sm:inline-flex items-center gap-0.5 p-0.5 bg-bg-subtle border border-border-subtle rounded-md shrink-0 self-center mb-5"
487+ >
488+ <NuxtLink
489+ v-if =" docsLink"
490+ :to =" docsLink"
491+ class =" px-2 py-1.5 font-mono text-xs rounded transition-colors duration-150 border border-transparent text-fg-subtle hover:text-fg hover:bg-bg hover:shadow hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 inline-flex items-center gap-1.5"
492+ aria-keyshortcuts =" d"
493+ >
494+ <span class =" i-carbon:document w-3 h-3" aria-hidden =" true" />
495+ {{ $t('package.links.docs') }}
496+ <kbd
497+ class =" inline-flex items-center justify-center w-4 h-4 text-xs bg-bg-muted border border-border rounded"
498+ aria-hidden =" true"
499+ >
500+ d
501+ </kbd >
502+ </NuxtLink >
503+ <NuxtLink
504+ :to =" {
505+ name: 'code',
506+ params: {
507+ path: [...pkg.name.split('/'), 'v', displayVersion.version],
508+ },
509+ }"
510+ class =" px-2 py-1.5 font-mono text-xs rounded transition-colors duration-150 border border-transparent text-fg-subtle hover:text-fg hover:bg-bg hover:shadow hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 inline-flex items-center gap-1.5"
511+ aria-keyshortcuts =" ."
512+ >
513+ <span class =" i-carbon:code w-3 h-3" aria-hidden =" true" />
514+ {{ $t('package.links.code') }}
515+ <kbd
516+ class =" inline-flex items-center justify-center w-4 h-4 text-xs bg-bg-muted border border-border rounded"
517+ aria-hidden =" true"
518+ >
519+ .
520+ </kbd >
521+ </NuxtLink >
522+ <NuxtLink
523+ :to =" { path: '/compare', query: { packages: pkg.name } }"
524+ class =" px-2 py-1.5 font-mono text-xs rounded transition-colors duration-150 border border-transparent text-fg-subtle hover:text-fg hover:bg-bg hover:shadow hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 inline-flex items-center gap-1.5"
525+ aria-keyshortcuts =" c"
526+ >
527+ <span class =" i-carbon:compare w-3 h-3" aria-hidden =" true" />
528+ {{ $t('package.links.compare') }}
529+ <kbd
530+ class =" inline-flex items-center justify-center w-4 h-4 text-xs bg-bg-muted border border-border rounded"
531+ aria-hidden =" true"
532+ >
533+ c
534+ </kbd >
535+ </NuxtLink >
536+ </nav >
537+
538538 <!-- External links -->
539- <ul class =" flex flex-wrap items-center gap-x-3 gap-y-1.5 sm:gap-4 list-none m-0 p-0 mt-3 " >
539+ <ul class =" flex flex-wrap items-center gap-x-3 gap-y-1.5 sm:gap-4 list-none m-0 p-0" >
540540 <li v-if =" repositoryUrl" >
541541 <a
542542 :href =" repositoryUrl"
0 commit comments