From 987bce0d936dc28d9ac75a14e0ff8da0dc9a3117 Mon Sep 17 00:00:00 2001 From: rockdrigo Date: Mon, 9 Nov 2026 19:15:45 -0600 Subject: [PATCH] style(cama): the four opportunity cards in one row, all of one size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit How: cáncer de mama's card grid no longer auto-fits 18rem columns (which could leave three cards and one below); it has two equal columns from 600px of dashboard width and four from 1100px. With grid-auto-rows: 1fr every card is as tall as the tallest one (the detection rate with its interval line). Implications: CaCu keeps its auto-fit grid for its five cards. On a narrow dashboard the cards stack in one column, still of one height per row. --- src/app/features/indicadores/indicadores-page.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/features/indicadores/indicadores-page.scss b/src/app/features/indicadores/indicadores-page.scss index 5c7082c..1233423 100644 --- a/src/app/features/indicadores/indicadores-page.scss +++ b/src/app/features/indicadores/indicadores-page.scss @@ -41,10 +41,13 @@ header p { color: var(--mat-sys-on-surface-variant); margin-bottom: 1.5rem; } @container dashboard (min-width: 1000px) { .kpi-grid { grid-template-columns: repeat(min(3, var(--kpi-count)), minmax(0, 1fr)); } } // Five opportunity cards: at least ~280px per card; retain existing TEA/CaMa grids. -.kpi-section[data-domain='cacu'] .kpi-grid, .kpi-section[data-domain='cama'] .kpi-grid { +.kpi-section[data-domain='cacu'] .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: stretch; } +// Cáncer de mama's four cards: one size, four in a row on wide screens and two by two below. +@container dashboard (min-width: 600px) { .kpi-section[data-domain='cama'] .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } +@container dashboard (min-width: 1100px) { .kpi-section[data-domain='cama'] .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } } .section-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--issste-space-1); border-block-start: 2px solid var(--issste-accent); border-block-end: 1px solid var(--issste-border);