Skip to content

Commit

Permalink
fix layout sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Jan 20, 2024
1 parent 6384f17 commit 5a9875c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
8 changes: 6 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@
<Metadata />
<ModeWatcher />
<Navbar />
<slot />
<Footer />
<div class="flex min-h-[calc(100vh-4rem)] flex-col">
<div class="flex-grow">
<slot />
</div>
<Footer />
</div>
29 changes: 11 additions & 18 deletions src/routes/docs/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,16 @@
import { cn } from "$lib/utils";
</script>

<div class="flex min-h-[calc(100vh-4rem)] flex-col">
<div class="flex-grow">
<div
class="mx-auto h-full max-w-8xl flex-1 items-start px-4 sm:px-6 md:grid md:grid-cols-[220px_minmax(0,1fr)] md:gap-2 lg:grid-cols-[220px_minmax(0,1fr)] lg:gap-10 lg:px-8"
>
<Sidebar />
<main
class={cn(
"relative pb-6 md:pl-0 lg:gap-10 xl:grid-cols-[1fr_220px]",
$page.error ?? "xl:grid"
)}
>
<div class="mx-auto w-full min-w-0 max-w-3xl pt-8" id="content">
<slot />
</div>
<TableOfContents />
</main>
<div
class="mx-auto h-full max-w-8xl flex-1 items-start px-4 sm:px-6 md:grid md:grid-cols-[220px_minmax(0,1fr)] md:gap-2 lg:grid-cols-[220px_minmax(0,1fr)] lg:gap-10 lg:px-8"
>
<Sidebar />
<main
class={cn("relative pb-6 md:pl-0 lg:gap-10 xl:grid-cols-[1fr_220px]", $page.error ?? "xl:grid")}
>
<div class="mx-auto w-full min-w-0 max-w-3xl pt-8" id="content">
<slot />
</div>
</div>
<TableOfContents />
</main>
</div>

0 comments on commit 5a9875c

Please sign in to comment.