aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-09-08 10:08:39 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-09-08 10:08:39 +0200
commite56aeac93bfd8cc05ddf229b7e51939fde41effd (patch)
treecc875e408299bfbdb5417fff8ff2388c5cfc3985 /src/routes
parentf6687db926e03eb44e5d72d321021f7738600357 (diff)
Replace routine status text chip with fixed-width glyph chip
Status becomes a 1.5rem rounded-square chip (ok=check, due=clock, late=!, veryLate=double !) keeping the green-to-red colors, moved to the start of each routine row; label and overdue stay in title.
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/projects/[id]/+page.svelte8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/routes/projects/[id]/+page.svelte b/src/routes/projects/[id]/+page.svelte
index 345f35f..b67ff45 100644
--- a/src/routes/projects/[id]/+page.svelte
+++ b/src/routes/projects/[id]/+page.svelte
@@ -156,6 +156,10 @@
>
</form>
{:else}
+ <StatusBadge
+ status={routine.status}
+ overdueDays={routine.overdueDays}
+ />
<div class="routine-info">
<a
class="routine-name"
@@ -171,10 +175,6 @@
{/if}
</span>
</div>
- <StatusBadge
- status={routine.status}
- overdueDays={routine.overdueDays}
- />
<form method="POST" action="?/complete" use:enhance>
<input type="hidden" name="id" value={routine.id} />
<button class="btn-done" type="submit">Fait</button>