File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -380,7 +380,6 @@ function handleClick(event: MouseEvent) {
380380 <!-- Package header -->
381381 <header class =" area-header border-b border-border" >
382382 <div class =" mb-4" >
383- <!-- Package name and version -->
384383 <div class =" flex items-baseline gap-2 mb-1.5 sm:gap-3 sm:mb-2 flex-wrap min-w-0" >
385384 <h1
386385 class =" font-mono text-2xl sm:text-3xl font-medium min-w-0 break-words"
@@ -392,13 +391,19 @@ function handleClick(event: MouseEvent) {
392391 class =" text-fg-muted hover:text-fg transition-colors duration-200"
393392 >@{{ orgName }}</NuxtLink
394393 ><span v-if =" orgName" >/</span >
394+ <span >{{ orgName ? pkg.name.replace(`@${orgName}/`, '') : pkg.name }}</span >
395395 <AnnounceTooltip :text =" $t('common.copied')" :isVisible =" copiedPkgName" >
396396 <button
397397 @click =" copyPkgName()"
398398 aria-describedby =" copy-pkg-name"
399- class =" cursor-copy ms-1 mt-1 active:scale-95 transition-transform "
399+ class =" cursor-copy ms-2 text-fg-subtle hover:text-fg transition-colors active:scale-95 inline-flex items-center justify-center align-middle "
400400 >
401- {{ orgName ? pkg.name.replace(`@${orgName}/`, '') : pkg.name }}
401+ <span v-if =" !copiedPkgName" class =" i-carbon:copy w-5 h-5" aria-hidden =" true" />
402+ <span
403+ v-else
404+ class =" i-carbon:checkmark w-5 h-5 text-green-500"
405+ aria-hidden =" true"
406+ />
402407 </button >
403408 </AnnounceTooltip >
404409 </h1 >
You can’t perform that action at this time.
0 commit comments