Skip to content

Commit

Permalink
fix(app): layout fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cor committed May 30, 2024
1 parent 30e8f6f commit 137fba7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
5 changes: 2 additions & 3 deletions app/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
%sveltekit.head%
</head>

<body data-sveltekit-prefetch data-sveltekit-preload-data="hover" data-sveltekit-preload-code="hover"
class="size-full m-auto flex justify-center max-w-full overflow-x-hidden">
<div class="size-full min-w-full min-h-full">%sveltekit.body%</div>
<body data-sveltekit-prefetch data-sveltekit-preload-data="hover" data-sveltekit-preload-code="hover">
<div class="size-screen flex flex-col">%sveltekit.body%</div>
</body>

</html>
3 changes: 1 addition & 2 deletions app/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,8 @@ $: if ($navigating) console.log("Navigating to", $page.url.pathname)
<Toaster position="bottom-right" />

<Header />
<slot />
<div class="flex-1"><slot /></div>
<Footer />

<SvelteQueryDevtools
position="bottom"
client={queryClient}
Expand Down
13 changes: 13 additions & 0 deletions app/src/routes/explorer/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<script>
import { cn } from "$lib/utilities/shadcn";
</script>
<div class="flex flex-row h-full flex-1">
<nav class={cn("flex flex-col border-solid border-r border-red-500 w-40")}>
<a href="/explorer/blocks">blocks</a>
<a href="/explorer/connections">connections</a>
</nav>

<div class="flex-1">
<slot/>
</div>
</div>
1 change: 1 addition & 0 deletions app/src/routes/explorer/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 4 additions & 0 deletions app/src/styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
min-width: min-content;
min-height: min-content;
}
.size-screen {
width: 100vw;
height: 100vh;
}
}


Expand Down

0 comments on commit 137fba7

Please sign in to comment.