File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
routes/package/[...package] Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Based on https://bits-ui.com/docs/components/collapsible#best-practices
24
24
<Collapsible .Content forceMount bind:ref {...restProps }>
25
25
{#snippet child ({ props , open })}
26
26
{#if open }
27
- <div {...props } transition:slide ={{ duration , axis }} class =" flex" >
27
+ <div {...props } transition:slide ={{ duration , axis }} class ={[ axis === " x " && " flex" ]} >
28
28
{@render children ?.()}
29
29
</div >
30
30
{/if }
Original file line number Diff line number Diff line change 68
68
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
69
69
{@html data .currentPackage .pkg .name .replace (/ \/ / g , " /<wbr />" )}
70
70
</h1 >
71
- <div class =" flex items-center" >
71
+ <div class =" flex flex-col items-start xs:flex-row xs: items-center" >
72
72
<h2 class =" group text-xl text-muted-foreground text-shadow-sm/5" >
73
73
<a
74
74
href ="https://github.com/ {data .currentPackage .owner }/ {data .currentPackage .repoName }"
78
78
{data .currentPackage .owner }/<wbr />{data .currentPackage .repoName }
79
79
</a >
80
80
</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
+ />
82
85
<Collapsible .Root class =" flex items-center" >
83
86
<Collapsible .Trigger >
84
87
{#snippet child ({ props })}
You can’t perform that action at this time.
0 commit comments