Extract Topbar component

Co-authored-by: Julien Donck <donckjulien@gmail.com>
This commit is contained in:
Rūdolfs Ošiņš
2026-04-27 17:59:12 +02:00
co-authored by Julien Donck
parent 0bd6f6b2b9
commit c0b1e41aef
5 changed files with 84 additions and 79 deletions
+27
View File
@@ -0,0 +1,27 @@
<script lang="ts">
import type { Snippet } from "svelte";
interface Props {
children: Snippet;
}
const { children }: Props = $props();
</script>
<style>
.topbar {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0 1rem;
height: 2.75rem;
flex-shrink: 0;
border-bottom: 1px solid var(--color-border-subtle);
font: var(--txt-body-m-regular);
color: var(--color-text-secondary);
}
</style>
<div class="topbar">
{@render children()}
</div>