From e1451f840ff38fa20fee6f43e23ed4aa7cc8f86a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 15 May 2026 19:16:45 +0200 Subject: [PATCH] chore(medications): tighten titration ladder, cadence grid, and phase-config layout on mobile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v1.4.27 MB7 — four medications-surface polish items in one commit: - CF-48: the titration ladder keeps its vertical (`flex-col`) layout until `md:` instead of breaking horizontal at `sm:`. The German dose + typical-weeks labels wrapped to 3 lines per step on Pixel 5, which read denser than the vertical layout below. - CF-49: the 30-day cadence grid tightens from `gap-1` to `gap-0.5` on `` wrapper so the user doesn't see a // card painted inside a card. The disclaimer also collapses to a // single muted line to keep the tile's vertical footprint tight. + // v1.4.27 MB7 / CF-66 — drop the `md:p-6` lift so the wrapper + // stays at the `p-4` density across viewports. The 6 unit padding + // on `md+` made the GLP-1 tile feel oversized relative to the + // neighbouring trend cards, which all use `p-4`. Compact mode + // retains the `space-y-2` layout without an outer card wrapper. const wrapperClass = compact ? "space-y-2" - : "bg-card border-border rounded-xl border p-4 md:p-6"; + : "bg-card border-border rounded-xl border p-4"; const wrapperProps = { "aria-labelledby": "drug-level-chart-title", className: wrapperClass, diff --git a/src/components/medications/SchedulingSection.tsx b/src/components/medications/SchedulingSection.tsx index 6c3619b61..d8548f160 100644 --- a/src/components/medications/SchedulingSection.tsx +++ b/src/components/medications/SchedulingSection.tsx @@ -192,7 +192,14 @@ export function SchedulingSection({ ) : ( <>
{data.ladder.map((step) => { @@ -149,7 +157,7 @@ export function TitrationSection({ medicationId }: TitrationSectionProps) {
  • + // v1.4.27 MB7 / CF-50 — stack the row on `