fix(ui): card density is a Card prop, and compact is compact on desktop

Nineteen cards spelled the compact tier by hand as gap-2 py-3 md:py-4,
which left the base md:gap-6 in place: a compact card opened a 24 px
gap between header and body on a desktop. Card takes density="compact"
now and pins the gap on both breakpoints; every hand-written compact
card, the priority card, the document card and the sample briefing
move onto it, and a test refuses the class list on a Card.

The precision guard on the steps page now reads rendered text only:
the page header's grid template (minmax(0,1fr)) matched its pattern.
This commit is contained in:
Marc-André Bombeck committed 2026-10-20 13:49:25 +02:00
1 parent 6885377f35
commit 3cc3829fba
27 files changed
+111 -47

No files matched your search

@@ -170,7 +170,7 @@ export function PractitionerList({ enabled = true }: { enabled?: boolean }) {
<ul className="space-y-2">
{groupRows.map((row) => (
<li key={row.id}>
<Card className="gap-2 py-3 md:py-4">
<Card density="compact">
<CardContent className="flex items-center gap-3">
<div className="min-w-0 flex-1">
<p className="text-foreground truncate text-sm font-medium">