feat: C3 — Variety review screen (Issue #28) #41

Merged
marcel merged 6 commits from feat/issue-28-variety-review into master 2026-04-03 11:37:53 +02:00
3 changed files with 4 additions and 4 deletions
Showing only changes of commit 8e82213d1e - Show all commits

View File

@@ -9,7 +9,7 @@
hard: number;
} = $props();
let total = $derived(easy + medium + hard);
</script>
<!-- Labels below the bar -->

View File

@@ -10,7 +10,7 @@
{#each warnings as warning}
<div
data-testid="warning-card"
class="rounded-[var(--radius-lg)] bg-[var(--yellow-tint)] px-4 py-3"
class="rounded-[var(--radius-lg)] border border-[var(--yellow-light)] bg-[var(--yellow-tint)] px-4 py-3"
>
<p class="font-[var(--font-sans)] text-[13px] font-medium text-[var(--yellow-text)]">
{warning.title}

View File

@@ -129,7 +129,7 @@
>
Planer
</a>
<span class="font-[var(--font-sans)] text-[13px] text-[var(--color-text-muted)]">/</span>
<span aria-hidden="true" class="font-[var(--font-sans)] text-[13px] text-[var(--color-text-muted)]">/</span>
<h1 class="font-[var(--font-display)] text-[20px] font-[300] text-[var(--color-text)]">
Abwechslungs-Analyse
</h1>
@@ -191,7 +191,7 @@
: 'bg-[var(--color-subtle)] text-[var(--color-text-muted)]'}
{isRepeated ? 'ring-2 ring-[var(--yellow)]' : ''}"
>
{protein ? protein.slice(0, 3) : '—'}
{protein ? protein.split(' ')[0].slice(0, 3).toUpperCase() : '—'}
</div>
</div>
{/each}