Skip to content

Commit af8f72a

Browse files
committed
fix: improve packages and code tab UI
- Fix sidebar position on tablet (xl:pt-4 → lg:pt-4) including skeleton - Add hover color transition to tooltip info icon - Add hover color transition to "other versions" dropdown button - Decrease directory listing transition to 100ms, scope to color and background-color only - Fix container-width toggle icon selector syntax Closes #2516
1 parent 4e8c727 commit af8f72a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

app/components/Code/DirectoryListing.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const bytesFormatter = useBytesFormatter()
7474
<!-- Parent directory link -->
7575
<tr
7676
v-if="parentPath !== null"
77-
class="border-b border-border hover:bg-bg-subtle transition-colors"
77+
class="border-b border-border hover:bg-bg-subtle transition-[color,background-color] duration-100"
7878
>
7979
<td colspan="2">
8080
<LinkBase
@@ -98,7 +98,7 @@ const bytesFormatter = useBytesFormatter()
9898
<tr
9999
v-for="node in currentContents"
100100
:key="node.path"
101-
class="border-b border-border hover:bg-bg-subtle transition-colors"
101+
class="border-b border-border hover:bg-bg-subtle transition-[color,background-color] duration-100"
102102
>
103103
<td colspan="2">
104104
<LinkBase

app/components/Code/Header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ useEventListener('keydown', (event: KeyboardEvent) => {
254254
<ButtonBase
255255
class="px-3 max-xl:hidden"
256256
:disabled="loading"
257-
classicon="i-lucide:unfold-horizontal [.container-full>&]:i-lucide:fold-horizontal"
257+
classicon="i-lucide:unfold-horizontal [.container-full_&]:i-lucide:fold-horizontal"
258258
:aria-label="$t('code.toggle_container')"
259259
@click="toggleCodeContainer()"
260260
/>

app/components/Package/Skeleton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
<div
182182
class="space-y-6 sm:space-y-8 min-w-0 lg:(max-h-[calc(100dvh-8.5rem)] overscroll-contain) xl:(max-h-[calc(100dvh-6rem)])"
183183
>
184-
<div class="flex flex-col gap-4 sm:gap-6 xl:pt-4">
184+
<div class="flex flex-col gap-4 sm:gap-6 lg:pt-4">
185185
<!-- Download stats — matches CollapsibleSection + sparkline skeleton -->
186186
<section>
187187
<div class="flex items-center justify-between mb-3 px-1">

app/components/Package/Versions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ function majorGroupContainsCurrent(group: (typeof otherMajorGroups.value)[0]): b
783783
<div class="p-1">
784784
<button
785785
type="button"
786-
class="flex items-center gap-2 text-start rounded-sm w-full"
786+
class="flex items-center gap-2 text-start rounded-sm w-full hover:text-fg transition-colors"
787787
:class="otherVersionsContainsCurrent() ? 'bg-bg-subtle' : ''"
788788
:aria-expanded="otherVersionsExpanded"
789789
:aria-label="

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ const showSkeleton = shallowRef(false)
671671
<TooltipApp v-if="sizeTooltip" :text="sizeTooltip" interactive>
672672
<span
673673
tabindex="0"
674-
class="inline-flex items-center justify-center min-w-6 min-h-6 -m-1 p-1 text-fg-subtle cursor-help focus-visible:outline-2 focus-visible:outline-accent/70 rounded"
674+
class="inline-flex items-center justify-center min-w-6 min-h-6 -m-1 p-1 text-fg-subtle hover:text-fg transition-colors cursor-help focus-visible:outline-2 focus-visible:outline-accent/70 rounded"
675675
>
676676
<span class="i-lucide:info w-3 h-3" aria-hidden="true" />
677677
</span>
@@ -925,7 +925,7 @@ const showSkeleton = shallowRef(false)
925925
</div>
926926

927927
<PackageSidebar :class="$style.areaSidebar">
928-
<div class="flex flex-col gap-4 sm:gap-6 xl:pt-4">
928+
<div class="flex flex-col gap-4 sm:gap-6 lg:pt-4">
929929
<!-- Team access controls (for scoped packages when connected) -->
930930
<ClientOnly>
931931
<PackageAccessControls :package-name="pkg.name" />

0 commit comments

Comments
 (0)