We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b6b01c commit 8a8dff5Copy full SHA for 8a8dff5
src/routes/package/+layout.svelte
@@ -10,15 +10,22 @@
10
let showPrereleases = $state(true);
11
</script>
12
13
-<div class="mt-8 flex gap-8 lg:mt-0">
+<div class="relative mt-8 flex gap-8 lg:mt-0">
14
<div class="flex-1">
15
{@render children()}
16
</div>
17
18
<Sheet.Root>
19
<Sheet.Trigger>
20
{#snippet child({ props })}
21
- <Button {...props} variant="secondary" class="ml-auto lg:hidden">
+ <Button
22
+ {...props}
23
+ variant="secondary"
24
+ class={[
25
+ "absolute right-0 mt-12 ml-auto lg:hidden",
26
+ page.data.currentPackage.pkg.description?.length && "mt-16"
27
+ ]}
28
+ >
29
<Menu />
30
<span class="sr-only">Menu</span>
31
</Button>
0 commit comments