Skip to content

Commit bfba80e

Browse files
committed
style: update
1 parent e1b1005 commit bfba80e

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ const flatItems = computed<FlatItem[]>(() => {
298298
<!-- Right: date + provenance -->
299299
<div
300300
v-if="getVersionDownloads(latestTagRow!.version)"
301-
class="text-sm font-medium text-fg tabular-nums shrink-0"
301+
class="grid grid-flow-col auto-cols-max items-center gap-1 text-sm font-medium text-fg tabular-nums shrink-0"
302302
:aria-label="getDownloadsAriaLabel(getVersionDownloads(latestTagRow!.version)!)"
303303
dir="ltr"
304304
:title="getDownloadsAriaLabel(getVersionDownloads(latestTagRow!.version)!)"
305305
>
306-
{{ numberFormatter.format(getVersionDownloads(latestTagRow!.version)!) }}
307-
<span class="i-lucide:chart-line"></span>
306+
<span>{{ numberFormatter.format(getVersionDownloads(latestTagRow!.version)!) }}</span>
307+
<span class="i-lucide:chart-line" aria-hidden="true"></span>
308308
</div>
309309
<div class="flex flex-col items-end gap-1.5 shrink-0 relative z-10">
310310
<ProvenanceBadge
@@ -357,13 +357,13 @@ const flatItems = computed<FlatItem[]>(() => {
357357
<!-- Date -->
358358
<span
359359
v-if="getVersionDownloads(row.version)"
360-
class="text-xs text-fg-muted shrink-0 tabular-nums w-24 text-end"
360+
class="grid grid-flow-col auto-cols-max items-center justify-end gap-1 text-xs text-fg-muted shrink-0 tabular-nums w-24 text-end"
361361
:aria-label="getDownloadsAriaLabel(getVersionDownloads(row.version)!)"
362362
dir="ltr"
363363
:title="getDownloadsAriaLabel(getVersionDownloads(row.version)!)"
364364
>
365-
{{ numberFormatter.format(getVersionDownloads(row.version)!) }}
366-
<span class="i-lucide:chart-line"></span>
365+
<span>{{ numberFormatter.format(getVersionDownloads(row.version)!) }}</span>
366+
<span class="i-lucide:chart-line" aria-hidden="true"></span>
367367
</span>
368368
<DateTime
369369
v-if="getVersionTime(row.version)"
@@ -453,13 +453,13 @@ const flatItems = computed<FlatItem[]>(() => {
453453
>
454454
<span
455455
v-if="getGroupDownloads(item.versions)"
456-
class="ms-auto text-xs text-fg-muted tabular-nums w-24 text-end"
456+
class="ms-auto grid grid-flow-col auto-cols-max items-center justify-end gap-1 text-xs text-fg-muted tabular-nums w-24 text-end"
457457
:aria-label="getDownloadsAriaLabel(getGroupDownloads(item.versions)!)"
458458
dir="ltr"
459459
:title="getDownloadsAriaLabel(getGroupDownloads(item.versions)!)"
460460
>
461-
{{ numberFormatter.format(getGroupDownloads(item.versions)!) }}
462-
<span class="i-lucide:chart-line"></span>
461+
<span>{{ numberFormatter.format(getGroupDownloads(item.versions)!) }}</span>
462+
<span class="i-lucide:chart-line" aria-hidden="true"></span>
463463
</span>
464464
<span class="flex items-center gap-3 shrink-0">
465465
<DateTime
@@ -525,16 +525,16 @@ const flatItems = computed<FlatItem[]>(() => {
525525
</div>
526526

527527
<!-- Right side -->
528-
<div class="flex items-center gap-2 shrink-0 relative z-10 justify-end">
528+
<div class="grid grid-flow-col auto-cols-max items-center gap-2 shrink-0 relative z-10 justify-end">
529529
<span
530530
v-if="getVersionDownloads(item.version)"
531-
class="text-xs text-fg-muted tabular-nums w-24 text-end shrink-0 items-center"
531+
class="grid grid-flow-col auto-cols-max items-center justify-end gap-1 text-xs text-fg-muted tabular-nums w-24 text-end shrink-0"
532532
:aria-label="getDownloadsAriaLabel(getVersionDownloads(item.version)!)"
533533
:title="getDownloadsAriaLabel(getVersionDownloads(item.version)!)"
534534
dir="ltr"
535535
>
536-
{{ numberFormatter.format(getVersionDownloads(item.version)!) }}
537-
<span class="i-lucide:chart-line"></span>
536+
<span>{{ numberFormatter.format(getVersionDownloads(item.version)!) }}</span>
537+
<span class="i-lucide:chart-line" aria-hidden="true"></span>
538538
</span>
539539
<!-- Metadata: date + provenance -->
540540
<DateTime
@@ -576,13 +576,13 @@ const flatItems = computed<FlatItem[]>(() => {
576576
<span class="text-xs text-fg-subtle">({{ item.versions.length }})</span>
577577
<span
578578
v-if="getGroupDownloads(item.versions)"
579-
class="ms-auto text-xs text-fg-muted tabular-nums w-24 text-end"
579+
class="ms-auto grid grid-flow-col auto-cols-max items-center justify-end gap-1 text-xs text-fg-muted tabular-nums w-24 text-end"
580580
:aria-label="getDownloadsAriaLabel(getGroupDownloads(item.versions)!)"
581581
dir="ltr"
582582
:title="getDownloadsAriaLabel(getGroupDownloads(item.versions)!)"
583583
>
584-
{{ numberFormatter.format(getGroupDownloads(item.versions)!) }}
585-
<span class="i-lucide:chart-line"></span>
584+
<span>{{ numberFormatter.format(getGroupDownloads(item.versions)!) }}</span>
585+
<span class="i-lucide:chart-line" aria-hidden="true"></span>
586586
</span>
587587
<span class="flex items-center gap-3 shrink-0">
588588
<span v-if="item.versions[0]" class="text-xs text-fg-muted" dir="ltr"

0 commit comments

Comments
 (0)