feat(topbar): responsive DocumentTopBar — issue #173 #174

Merged
marcel merged 32 commits from feat/issue-173-document-topbar into main 2026-04-02 16:13:49 +02:00
Showing only changes of commit 20dbe04d45 - Show all commits

View File

@@ -0,0 +1,20 @@
<script lang="ts">
import { statusDotClass, statusLabel } from '$lib/utils/personFormat';
type DocumentStatus = 'PLACEHOLDER' | 'UPLOADED' | 'TRANSCRIBED' | 'REVIEWED' | 'ARCHIVED';
type Props = {
status: DocumentStatus;
};
let { status }: Props = $props();
const dotClass = $derived(statusDotClass(status));
const label = $derived(statusLabel(status));
</script>
<span
class="hidden shrink-0 md:block {dotClass} h-2.5 w-2.5 rounded-full"
title={label}
aria-label={label}
></span>