Salud: two cards to a row, at every width
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
Asked for as "filas de 2 tarjetas para que se vea bien". The grid used the shared `.tiles`, which is two columns on a phone and **four** at ≥1000px, so on a desktop the health cards were ~240px wide — narrow enough that the unit wrapped off the number and the sparkline flattened into a squiggle with no shape, which is the one thing it is there to show. The grid now carries `vh-tiles` and the stylesheet gives that pairing two columns, on any screen. It is a scoped rule rather than a change to `.tiles` because every other grid in the app — Home's quick tiles, Stats, the admin cards, the sheets — wants the four-column version; a health card is the only tile carrying a unit, a trend arrow and a chart. The test asserts both halves, because either one alone does nothing: the class on the grid, and the rule it applies. Checked against both bugs — removing the class fails it, and so does putting the rule back to four columns.
This commit is contained in:
1 parent
aa6ec8ef22
commit
3c88e3c188
4 files changed
+44
-2
No files matched your search
@@ -1350,6 +1350,14 @@ body.chips-dragging *{cursor:inherit}
|
||||
background:color-mix(in srgb,var(--tint) 14%,var(--glass));
|
||||
border:var(--hair) solid color-mix(in srgb,var(--tint) 26%,transparent);
|
||||
-webkit-backdrop-filter:blur(10px) saturate(140%);backdrop-filter:blur(10px) saturate(140%)}
|
||||
/* Two per row, on a phone and on a 1080px desktop alike.
|
||||
Every other grid in the app goes to four columns once there is room for them, and a health card
|
||||
is the one tile that must not: it carries a label, a number *with its unit*, a trend arrow, a
|
||||
sparkline and the date it came from. At four across (≈240px) the unit wraps off the number and
|
||||
the sparkline loses its shape, which is the only reason it is there. Two columns keeps the
|
||||
number and its unit on one line at every width, and matches what the same screen looks like on
|
||||
the phone. */
|
||||
.tiles.vh-tiles{grid-template-columns:1fr 1fr}
|
||||
.vh-card .l{color:var(--tint)}
|
||||
.vh-card .l .icn{color:var(--tint)}
|
||||
.vh-card .v{color:var(--tint)}
|
||||
|
||||
Reference in new issue
Block a user