Skip to content

Commit 577afc2

Browse files
committed
style: update
1 parent 7871c06 commit 577afc2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

app/pages/package/[[org]]/[name]/versions.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ const flatItems = computed<FlatItem[]>(() => {
334334
<!-- Latest — featured card -->
335335
<div
336336
v-if="latestTagRow"
337-
class="border-y sm:rounded-lg sm:border border-accent/40 bg-accent/5 px-5 py-4 relative flex items-center justify-between gap-4 hover:bg-accent/8 transition-colors"
337+
class="border-y sm:rounded-lg sm:border border-accent/40 bg-accent/5 px-4 py-4 relative flex items-center justify-between gap-4 hover:bg-accent/8 transition-colors"
338338
>
339339
<!-- Left: tags + version + deprecated -->
340340
<div>
@@ -372,22 +372,22 @@ const flatItems = computed<FlatItem[]>(() => {
372372
/>
373373
</div>
374374
</div>
375-
<!-- Right: downloads + date + provenance -->
376-
<div
377-
v-if="getVersionDownloads(latestTagRow!.version)"
378-
class="grid grid-flow-col auto-cols-max items-center gap-1 text-sm font-medium text-fg tabular-nums shrink-0"
379-
:aria-label="getDownloadsAriaLabel(getVersionDownloads(latestTagRow!.version)!)"
380-
dir="ltr"
381-
:title="getDownloadsAriaLabel(getVersionDownloads(latestTagRow!.version)!)"
382-
>
383-
<span>{{ numberFormatter.format(getVersionDownloads(latestTagRow!.version)!) }}</span>
384-
<span class="i-lucide:chart-line" aria-hidden="true"></span>
385-
</div>
386-
<div class="flex flex-col items-end gap-1.5 shrink-0 relative z-10">
375+
<!-- Right: downloads + date -->
376+
<div class="flex items-center gap-4 shrink-0 relative z-10">
377+
<span
378+
v-if="getVersionDownloads(latestTagRow!.version)"
379+
class="w-28 grid grid-flow-col auto-cols-max items-center gap-1 text-xs text-fg-muted tabular-nums justify-end"
380+
:aria-label="getDownloadsAriaLabel(getVersionDownloads(latestTagRow!.version)!)"
381+
dir="ltr"
382+
:title="getDownloadsAriaLabel(getVersionDownloads(latestTagRow!.version)!)"
383+
>
384+
<span>{{ numberFormatter.format(getVersionDownloads(latestTagRow!.version)!) }}</span>
385+
<span class="i-lucide:chart-line" aria-hidden="true"></span>
386+
</span>
387387
<DateTime
388388
v-if="getVersionTime(latestTagRow!.version)"
389389
:datetime="getVersionTime(latestTagRow!.version)!"
390-
class="text-xs text-fg-subtle whitespace-nowrap"
390+
class="text-xs text-fg-subtle whitespace-nowrap w-24 text-end"
391391
year="numeric"
392392
month="short"
393393
day="numeric"

0 commit comments

Comments
 (0)