mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 23:52:24 +00:00
Even out the Insights overview inter-section spacing
The overview is a vertical stack on a single space-y-6 rhythm, but two seams read wrong: Trends to period-in-review felt too wide while the cycle summary to signals-of-the-day seam had no gap at all. The missing gap traced to the cycle-summary card wrapping itself in a display:contents box, which collapsed its margin so space-y skipped it. - Give the cycle summary a real section wrapper (heading above the card, matching every other section) so the inter-section margin applies. - Document space-y-6 as the single gap, top to bottom; every section is a real section or renders null, never a contents wrapper that strands a phantom margin.
This commit is contained in:
1 parent
86f416fb2a
commit
6abc178c88
3 files changed
+74
-52
No files matched your search
@@ -366,6 +366,13 @@ export default function InsightsPage() {
|
||||
// wrap used `space-y-6` (24 px), so the overview read as two tiers. Unify
|
||||
// to `space-y-6` — it matches the vitals wrap and tightens the overview in
|
||||
// line with the "Insights gives away too much space" direction.
|
||||
//
|
||||
// v1.15.10 — `space-y-6` is now the SINGLE inter-section gap, top to
|
||||
// bottom. Every section renders as a real `<section>` (or `null` — never a
|
||||
// `display: contents` wrapper, which used to collapse the cycle-summary box
|
||||
// so `space-y` skipped its margin and the cycle→signals seam read as
|
||||
// zero-gap). Each section owns its OWN `SectionHeading` + `space-y-3` to its
|
||||
// card, so the rhythm is even regardless of which sections are present.
|
||||
<div className="space-y-6">
|
||||
<HeroStrip
|
||||
briefing={briefingPayload}
|
||||
@@ -377,9 +384,7 @@ export default function InsightsPage() {
|
||||
: undefined
|
||||
}
|
||||
onPickPrompt={
|
||||
coachLaunch
|
||||
? (prompt) => coachLaunch.askCoach(prompt)
|
||||
: undefined
|
||||
coachLaunch ? (prompt) => coachLaunch.askCoach(prompt) : undefined
|
||||
}
|
||||
healthScore={analytics?.healthScore ?? undefined}
|
||||
/>
|
||||
@@ -392,9 +397,7 @@ export default function InsightsPage() {
|
||||
// v1.15.3 — the cycle ring rides the scores strip as a gated sibling
|
||||
// tile, only for a cycle-tracking account, so its calendar read never
|
||||
// fires otherwise (the same `/api/auth/me` gate the sidebar nav uses).
|
||||
extraTile={
|
||||
user?.cycleTrackingEnabled ? <CycleRingTile /> : undefined
|
||||
}
|
||||
extraTile={user?.cycleTrackingEnabled ? <CycleRingTile /> : undefined}
|
||||
// v1.15.5 — when the cycle ring is shown it TAKES the Strain slot:
|
||||
// hide Strain so the strip stays compact instead of growing a sixth
|
||||
// tile. Strain stays visible for non-cycle accounts.
|
||||
|
||||
Reference in new issue
Block a user