Skip to content
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
35d4105
chore(ui): make package name selectable and move copy button to icon
Adebesin-Cell Feb 1, 2026
0a3d6c2
Merge branch 'main' into ux/make-package-name-selectable
Adebesin-Cell Feb 1, 2026
6308420
refactor: Improve handling of copying package name
Adebesin-Cell Feb 1, 2026
e044f09
Merge branch 'ux/make-package-name-selectable' of https://github.com/…
Adebesin-Cell Feb 1, 2026
508605e
Merge branch 'main' into ux/make-package-name-selectable
Adebesin-Cell Feb 1, 2026
13fbd23
Merge branch 'main' into ux/make-package-name-selectable
Adebesin-Cell Feb 1, 2026
52ee98c
Merge branch 'main' into ux/make-package-name-selectable
Adebesin-Cell Feb 1, 2026
7294574
style: Remove redundant handleCopy function and improve button handling
Adebesin-Cell Feb 1, 2026
fe9ed2f
fix: merge conflicts
Adebesin-Cell Feb 1, 2026
818ca30
Merge remote-tracking branch 'origin/main' into ux/make-package-name-…
danielroe Feb 1, 2026
cbc36eb
Merge branch 'main' into ux/make-package-name-selectable
Adebesin-Cell Feb 1, 2026
073caca
style: Improve code formatting in package page heading
Adebesin-Cell Feb 1, 2026
f8cc8b6
fix: merge conflicts
Adebesin-Cell Feb 1, 2026
2a434e9
Merge branch 'main' into ux/make-package-name-selectable
Adebesin-Cell Feb 1, 2026
13b05a8
Merge branch 'main' into ux/make-package-name-selectable
Adebesin-Cell Feb 1, 2026
28829e6
Merge branch 'main' into ux/make-package-name-selectable
Adebesin-Cell Feb 1, 2026
92c6338
fix: copy button
Adebesin-Cell Feb 1, 2026
0f1307a
Merge branch 'ux/make-package-name-selectable' of https://github.com/…
Adebesin-Cell Feb 1, 2026
5fcc81d
style: Update class name for copy button
Adebesin-Cell Feb 1, 2026
9646bf1
Merge branch 'main' into ux/make-package-name-selectable
Adebesin-Cell Feb 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 31 additions & 16 deletions app/pages/[...package].vue
Original file line number Diff line number Diff line change
Expand Up @@ -432,28 +432,37 @@ function handleClick(event: MouseEvent) {
>
<!-- Package name and version -->
<div class="flex items-baseline gap-2 sm:gap-3 flex-wrap min-w-0">
<h1
class="font-mono text-2xl sm:text-3xl font-medium min-w-0 break-words"
:title="pkg.name"
>
<NuxtLink
v-if="orgName"
:to="{ name: 'org', params: { org: orgName } }"
class="text-fg-muted hover:text-fg transition-colors duration-200"
>@{{ orgName }}</NuxtLink
><span v-if="orgName">/</span>
<div class="group relative flex flex-col items-start min-w-0">
<h1
class="font-mono text-2xl sm:text-3xl font-medium min-w-0 break-words"
:title="pkg.name"
>
<NuxtLink
v-if="orgName"
:to="{ name: 'org', params: { org: orgName } }"
class="text-fg-muted hover:text-fg transition-colors duration-200"
>
@{{ orgName }}
</NuxtLink>
<span v-if="orgName">/</span>
<span :class="{ 'text-fg-muted': orgName }">
{{ orgName ? pkg.name.replace(`@${orgName}/`, '') : pkg.name }}
</span>
</h1>

<!-- Floating copy button -->
<TooltipAnnounce :text="$t('common.copied')" :isVisible="copiedPkgName">
<button
type="button"
@click="copyPkgName()"
aria-describedby="copy-pkg-name"
class="cursor-copy active:scale-95 transition-transform"
class="copy-button absolute z-20 left-0 top-full inline-flex items-center gap-1 px-2 py-1 rounded border text-xs font-mono whitespace-nowrap text-fg-muted bg-bg border-border opacity-0 -translate-y-1 pointer-events-none transition-all duration-150 group-hover:opacity-100 group-hover:translate-y-0 group-hover:pointer-events-auto focus-visible:opacity-100 focus-visible:translate-y-0 focus-visible:pointer-events-auto hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/40"
:aria-label="$t('package.copy_name')"
>
{{ orgName ? pkg.name.replace(`@${orgName}/`, '') : pkg.name }}
<span class="i-carbon:copy w-3.5 h-3.5" aria-hidden="true" />
{{ $t('package.copy_name') }}
</button>
</TooltipAnnounce>
</h1>

<span id="copy-pkg-name" class="sr-only">{{ $t('package.copy_name') }}</span>
</div>
<span
v-if="displayVersion"
class="inline-flex items-baseline gap-1.5 font-mono text-base sm:text-lg text-fg-muted shrink-0"
Expand Down Expand Up @@ -1237,4 +1246,10 @@ function handleClick(event: MouseEvent) {
max-width: 100%;
min-width: 0;
}

@media (hover: none) {
.copy-button {
display: none;
}
}
</style>
Loading