Skip to content

Commit 8b41b8e

Browse files
committed
docs: Fix sticky docs and simplify notice
1 parent 13476b3 commit 8b41b8e

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

packages/layerchart/src/routes/+layout.svelte

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,23 +125,23 @@
125125
{/if}
126126
</svelte:head>
127127

128-
<div
129-
class="fixed top-0 left-0 w-full h-8 bg-primary-700 flex gap-2 items-center justify-center text-sm font-medium z-50"
130-
>
131-
LayerChart for Svelte 5 has been released! -
132-
<a href="https://next.layerchart.com" class="underline-offset-2 hover:underline">
133-
Visit the preview docs <Icon data={mdiArrowTopRight} class="text-xs mt-[-2px]" />
134-
</a>
135-
</div>
136-
137-
<AppLayout classes={{ aside: 'pt-8' }}>
128+
<AppLayout headerHeight={96}>
138129
<svelte:fragment slot="nav">
139130
<NavMenu />
140131
<!-- Spacer -->
141132
<div class="h-4"></div>
142133
</svelte:fragment>
143134

144-
<AppBar title="LayerChart" class="mt-8">
135+
<AppBar title="LayerChart" class="pt-8">
136+
<div
137+
class="fixed top-0 left-0 w-full h-8 bg-primary-700 flex gap-2 items-center justify-center text-sm font-medium"
138+
>
139+
LayerChart for Svelte 5 has been released! -
140+
<a href="https://next.layerchart.com" class="underline-offset-2 hover:underline">
141+
Visit the preview docs <Icon data={mdiArrowTopRight} class="text-xs mt-[-2px]" />
142+
</a>
143+
</div>
144+
145145
<div slot="actions" class="flex gap-3">
146146
<Button
147147
href="https://svelte-ux.techniq.dev"
@@ -226,7 +226,7 @@
226226
</div>
227227
</AppBar>
228228

229-
<main class="isolate pt-8" bind:this={mainEl}>
229+
<main class="isolate" bind:this={mainEl}>
230230
<slot />
231231
</main>
232232
</AppLayout>

0 commit comments

Comments
 (0)