@@ -338,7 +338,7 @@ async function copyInstallCommand() {
338338
339339// Expandable description
340340const descriptionExpanded = ref (false )
341- const descriptionRef = ref < HTMLDivElement >( )
341+ const descriptionRef = useTemplateRef ( ' descriptionRef ' )
342342const descriptionOverflows = ref (false )
343343
344344// Check if description overflows on mount/update
@@ -651,7 +651,7 @@ defineOgImageComponent('Package', {
651651
652652 <!-- Links -->
653653 <nav aria-label =" Package links" class =" mt-6" >
654- <ul class =" flex flex-wrap items-center gap-3 sm:gap-4 list-none m-0 p-0" >
654+ <ul class =" flex flex-wrap items-stretch gap-3 sm:gap-4 list-none m-0 p-0" >
655655 <li v-if =" repositoryUrl" >
656656 <a
657657 :href =" repositoryUrl"
@@ -727,19 +727,7 @@ defineOgImageComponent('Package', {
727727 {{ t('package.links.jsr') }}
728728 </a >
729729 </li >
730- <li class =" sm:flex-grow" >
731- <a
732- :href =" `https://socket.dev/npm/package/${pkg.name}/overview/${displayVersion?.version ?? 'latest'}`"
733- target =" _blank"
734- rel =" noopener noreferrer"
735- class =" link-subtle font-mono text-sm inline-flex items-center gap-1.5"
736- >
737- <span class =" i-simple-icons-socket w-4 h-4" aria-hidden =" true" />
738- {{ t('package.links.socket') }}
739- </a >
740- </li >
741-
742- <li v-if =" displayVersion" >
730+ <li v-if =" displayVersion" class =" sm:ml-auto" >
743731 <NuxtLink
744732 :to =" {
745733 name: 'code',
@@ -748,6 +736,7 @@ defineOgImageComponent('Package', {
748736 class =" link-subtle font-mono text-sm inline-flex items-center gap-1.5"
749737 aria-keyshortcuts =" ."
750738 >
739+ <span class =" i-carbon-code w-4 h-4 sm:invisible" aria-hidden =" true" />
751740 {{ t('package.links.code') }}
752741 <kbd
753742 class =" hidden sm:inline-flex items-center justify-center w-4 h-4 text-xs bg-bg-muted border border-border rounded"
0 commit comments