From 21b65788ae6b4beef9c3352739c288954b807cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 5 Jul 2026 16:29:34 +0200 Subject: [PATCH] fix(ui): drop stale padding-era overrides on CardHeader and CardContent The Card has been a gap-based flex column since v1.4.33 (gap-4 md:gap-6; CardHeader carries no bottom padding), but 29 CardHeader pb-0/1/2/2.5 and 8 CardContent pt-6 overrides from the padding-era shadcn card survived. Under the gap model they invert their intent: pb-* renders gap PLUS padding (looser, not tighter), pb-0 is a no-op, and pt-6 on a header-less CardContent stacks on the Card's own py-4/6 and makes the card top-heavy (40-48 px top vs 16-24 px bottom). Delete them all; a genuinely tighter header-to-body distance is expressed on the Card itself (className="gap-2"), the only knob that controls it. An ESLint guard for these slots is a follow-up. --- src/app/insights/medications/page.tsx | 2 +- src/components/charts/mood-chart.tsx | 2 +- src/components/custom-metrics/custom-metric-detail.tsx | 6 +++--- src/components/illness/illness-episode-detail.tsx | 2 +- src/components/illness/illness-view.tsx | 2 +- src/components/insights/correlation-card.tsx | 2 +- .../insights/glucose/glucose-clinical-panel.tsx | 6 +++--- src/components/insights/insight-status-card.tsx | 10 +++++----- src/components/insights/metric-target-summary.tsx | 2 +- .../insights/mood/mood-correlation-cards.tsx | 2 +- src/components/insights/mood/mood-in-target-tile.tsx | 2 +- .../insights/mood/mood-insights-sections.tsx | 4 ++-- src/components/insights/mood/mood-stability-tile.tsx | 2 +- src/components/insights/mood/mood-what-stands-out.tsx | 2 +- src/components/insights/sleep-hypnogram.tsx | 2 +- src/components/insights/sleep-stage-stacked-bar.tsx | 2 +- src/components/insights/sleep/average-sleep-card.tsx | 4 ++-- src/components/insights/sleep/chronotype-card.tsx | 4 ++-- src/components/insights/sleep/sleep-debt-card.tsx | 4 ++-- src/components/labs/lab-biomarker-detail.tsx | 8 ++++---- src/components/medications/medication-card-header.tsx | 2 +- 21 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/app/insights/medications/page.tsx b/src/app/insights/medications/page.tsx index e95c6a306..e5b7d4af7 100644 --- a/src/app/insights/medications/page.tsx +++ b/src/app/insights/medications/page.tsx @@ -211,7 +211,7 @@ export default function InsightsMedikamentePage() { : t("medications.categoryOther"); return ( - +
{med.dose} diff --git a/src/components/charts/mood-chart.tsx b/src/components/charts/mood-chart.tsx index c9dfa3a1a..cfaac77ae 100644 --- a/src/components/charts/mood-chart.tsx +++ b/src/components/charts/mood-chart.tsx @@ -996,7 +996,7 @@ export function MoodChart({ return ( - + {/* v1.4.19 A2 — mobile-first header: stack title row above controls row on small viewports so the bucket / comparison chips never push the range tabs into a 2nd line. ≥sm goes diff --git a/src/components/custom-metrics/custom-metric-detail.tsx b/src/components/custom-metrics/custom-metric-detail.tsx index e0f51a54a..829d89886 100644 --- a/src/components/custom-metrics/custom-metric-detail.tsx +++ b/src/components/custom-metrics/custom-metric-detail.tsx @@ -268,13 +268,13 @@ export function CustomMetricDetail({ {isLoading ? ( - + ) : entries.length === 0 ? ( - + } title={t("customMetrics.detail.emptyTitle")} @@ -296,7 +296,7 @@ export function CustomMetricDetail({ icon={Gauge} /> - + - +

{t("illness.detail.note")}

diff --git a/src/components/illness/illness-view.tsx b/src/components/illness/illness-view.tsx index 84a37e9a5..9b7efe866 100644 --- a/src/components/illness/illness-view.tsx +++ b/src/components/illness/illness-view.tsx @@ -132,7 +132,7 @@ function EpisodeCard({ return ( - + - +
{title} diff --git a/src/components/insights/glucose/glucose-clinical-panel.tsx b/src/components/insights/glucose/glucose-clinical-panel.tsx index 4704087dd..4958f36d1 100644 --- a/src/components/insights/glucose/glucose-clinical-panel.tsx +++ b/src/components/insights/glucose/glucose-clinical-panel.tsx @@ -50,7 +50,7 @@ export function GlucoseClinicalPanel() { if (query.isLoading) { return ( - + @@ -96,7 +96,7 @@ export function GlucoseClinicalPanel() { return ( - +