From 2f52d49d91c73bfad68f069f0700677cac04e137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 5 Jun 2026 14:51:43 +0200 Subject: [PATCH] fix(insights): tighten the assessment card header-to-text gap Trim the assessment card flex gap to gap-1.5 (from gap-2 md:gap-3) and the header bottom padding to pb-1 (from pb-2) so the TileHeading sits close to its prose, matching the header-to-body rhythm of the sibling tiles. Applied across the success, preparing, no-provider, and no-analysis states; the loading skeleton keeps its own spacing. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../insights/insight-status-card.tsx | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/components/insights/insight-status-card.tsx b/src/components/insights/insight-status-card.tsx index 90f837694..5df13c204 100644 --- a/src/components/insights/insight-status-card.tsx +++ b/src/components/insights/insight-status-card.tsx @@ -85,9 +85,9 @@ export function InsightStatusCard({ aria-busy="true" aria-live="polite" data-testid="insight-status-card-preparing" - className="gap-2 py-4 md:gap-3 md:py-5" + className="gap-1.5 py-4 md:py-5" > - + @@ -139,8 +139,8 @@ export function InsightStatusCard({ if (!hasProvider) { return ( - - + + @@ -154,8 +154,8 @@ export function InsightStatusCard({ if (!text) { return ( - - + + @@ -190,9 +190,15 @@ export function InsightStatusCard({ // border-l-2`). The coloured rule made the assessment card read as // restless against the calmer surrounding cards; the plain card // border carries enough separation on its own. - className="animate-insight-in gap-2 py-4 md:gap-3 md:py-5" + // + // v1.12.8 — tighten the header-to-prose gap. The card flex gap is + // `gap-1.5` (was `gap-2 md:gap-3`) and the `CardHeader` trims its + // bottom padding to `pb-1` (was `pb-2`), so the `` sits + // close to the prose and matches the header-to-body rhythm of the + // sibling tiles. The loading skeleton keeps its own spacing. + className="animate-insight-in gap-1.5 py-4 md:py-5" > - + {/* v1.11.5 — the top-right "cached" label was removed: it surfaced an implementation detail and devalued the assessment. The card still consumes the warm cache; it just no longer announces it.