Skip to content

Commit 4aa1220

Browse files
style: improve RSS button look on small screens
1 parent b62fa1b commit 4aa1220

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/lib/components/AnimatedCollapsibleContent.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Based on https://bits-ui.com/docs/components/collapsible#best-practices
2424
<Collapsible.Content forceMount bind:ref {...restProps}>
2525
{#snippet child({ props, open })}
2626
{#if open}
27-
<div {...props} transition:slide={{ duration, axis }} class="flex">
27+
<div {...props} transition:slide={{ duration, axis }} class={[axis === "x" && "flex"]}>
2828
{@render children?.()}
2929
</div>
3030
{/if}

src/routes/package/[...package]/+page.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
6969
{@html data.currentPackage.pkg.name.replace(/\//g, "/<wbr />")}
7070
</h1>
71-
<div class="flex items-center">
71+
<div class="flex flex-col items-start xs:flex-row xs:items-center">
7272
<h2 class="group text-xl text-muted-foreground text-shadow-sm/5">
7373
<a
7474
href="https://github.com/{data.currentPackage.owner}/{data.currentPackage.repoName}"
@@ -78,7 +78,10 @@
7878
{data.currentPackage.owner}/<wbr />{data.currentPackage.repoName}
7979
</a>
8080
</h2>
81-
<Separator orientation="vertical" class="mx-2 h-lh bg-muted-foreground/50" />
81+
<Separator
82+
orientation="vertical"
83+
class="mx-2 hidden h-lh bg-muted-foreground/50 xs:block"
84+
/>
8285
<Collapsible.Root class="flex items-center">
8386
<Collapsible.Trigger>
8487
{#snippet child({ props })}

0 commit comments

Comments
 (0)