fix: Fix navbar size

This commit is contained in:
Xyphyn committed 2023-07-01 17:53:54 -07:00
1 parent 89bd20b8d0
commit 699e9e68d1
2 files changed
+3 -18

No files matched your search

+2 -17
View File
@@ -1,8 +1,6 @@
<script lang="ts">
import Link from '$lib/components/Link.svelte'
import Logo from '$lib/components/Logo.svelte'
export let routes: string[] = []
</script>
<nav
@@ -10,23 +8,10 @@
max-w-5xl mx-auto px-6"
>
<div class="flex flex-row gap-2 items-center mr-auto">
<a href="/">
<a href="/" class="flex flex-row items-center gap-2">
<Logo width={40} />
<span class="font-bold">Xylemmy</span>
</a>
{#if routes.length != 0}
{#each routes as route}
<svg
fill="none"
height="32"
viewBox="0 0 24 24"
width="32"
class="stroke-1 opacity-20 stroke-black dark:stroke-white"
>
<path d="M16.88 3.549L7.12 20.451" />
</svg>
<span>{route}</span>
{/each}
{/if}
</div>
<Link href="/communities">Communities</Link>
<div
+1 -1
View File
@@ -21,7 +21,7 @@
}
</script>
<Navbar routes={$page.url.pathname.split('/').slice(1)} />
<Navbar />
<div class="mx-auto max-w-5xl p-4">
<slot />
</div>