Skip to content

Commit f7ade59

Browse files
fix(ui): adjust sidebar versions spacing (#1641)
Co-authored-by: Vordgi <sasha2822222@gmail.com>
1 parent 10a912b commit f7ade59

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

app/components/CollapsibleSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ useHead({
8686
<button
8787
:id="buttonId"
8888
type="button"
89-
class="w-4 h-4 flex items-center justify-center text-fg-subtle hover:text-fg-muted transition-colors duration-200 shrink-0 focus-visible:outline-accent/70 rounded"
89+
class="size-5 -me-1 flex items-center justify-center text-fg-subtle hover:text-fg-muted transition-colors duration-200 shrink-0 focus-visible:outline-accent/70 rounded"
9090
:aria-expanded="isOpen"
9191
:aria-controls="contentId"
9292
:aria-label="ariaLabel"

app/components/Package/Versions.vue

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,8 @@ function majorGroupContainsCurrent(group: (typeof otherMajorGroups.value)[0]): b
510510
</template>
511511
<div class="space-y-0.5 min-w-0">
512512
<!-- Semver range filter -->
513-
<div class="px-1 pb-1">
514-
<div class="flex items-center gap-1.5 py-1">
513+
<div>
514+
<div class="flex items-center gap-2 p-1">
515515
<InputBase
516516
v-model="semverFilter"
517517
type="text"
@@ -527,10 +527,14 @@ function majorGroupContainsCurrent(group: (typeof otherMajorGroups.value)[0]): b
527527
<TooltipApp interactive position="top">
528528
<span
529529
tabindex="0"
530-
class="i-lucide:info w-3.5 h-3.5 text-fg-subtle cursor-help shrink-0 rounded-sm"
531-
role="img"
532-
:aria-label="$t('package.versions.filter_help')"
533-
/>
530+
class="block cursor-help shrink-0 -m-2 p-2 -me-1 focus-visible:outline-2 focus-visible:outline-accent/70 rounded"
531+
>
532+
<span
533+
class="block i-lucide:info w-3.5 h-3.5 text-fg-subtle"
534+
role="img"
535+
:aria-label="$t('package.versions.filter_help')"
536+
/>
537+
</span>
534538
<template #content>
535539
<p class="text-xs text-fg-muted">
536540
<i18n-t keypath="package.versions.filter_tooltip" tag="span">
@@ -574,7 +578,7 @@ function majorGroupContainsCurrent(group: (typeof otherMajorGroups.value)[0]): b
574578
<button
575579
v-if="getTagVersions(row.tag).length > 1 || !hasLoadedAll"
576580
type="button"
577-
class="w-4 h-4 flex items-center justify-center text-fg-subtle hover:text-fg transition-colors rounded-sm"
581+
class="size-5 -me-1 flex items-center justify-center text-fg-subtle hover:text-fg transition-colors rounded-sm"
578582
:aria-expanded="expandedTags.has(row.tag)"
579583
:aria-label="
580584
expandedTags.has(row.tag)
@@ -592,14 +596,14 @@ function majorGroupContainsCurrent(group: (typeof otherMajorGroups.value)[0]): b
592596
/>
593597
<span
594598
v-else
595-
class="w-3 h-3 transition-transform duration-200 rtl-flip"
599+
class="size-3 transition-transform duration-200 rtl-flip"
596600
:class="
597601
expandedTags.has(row.tag) ? 'i-lucide:chevron-down' : 'i-lucide:chevron-right'
598602
"
599603
aria-hidden="true"
600604
/>
601605
</button>
602-
<span v-else class="w-4" />
606+
<span v-else class="w-5" />
603607

604608
<!-- Version info -->
605609
<div class="flex-1 py-1.5 min-w-0 flex gap-2 justify-between items-center">
@@ -739,7 +743,7 @@ function majorGroupContainsCurrent(group: (typeof otherMajorGroups.value)[0]): b
739743
@click="expandOtherVersions"
740744
>
741745
<span
742-
class="w-4 h-4 flex items-center justify-center text-fg-subtle hover:text-fg transition-colors"
746+
class="size-5 -me-1 flex items-center justify-center text-fg-subtle hover:text-fg transition-colors"
743747
>
744748
<span
745749
v-if="otherVersionsLoading"

0 commit comments

Comments
 (0)