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

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:
dsantillan committed 2026-09-23 13:36:22 -04:00
1 parent aa6ec8ef22
commit 3c88e3c188
4 files changed
+44 -2

No files matched your search

+4
View File
@@ -9,6 +9,10 @@ rate, sleep, weight, oxygen, workouts, and every other metric HAE can export —
fork has never heard of, which land under **Other** with a humanised name and a detail sheet listing
every field the watch sent.
The cards sit two to a row, on a phone and on a desktop alike — every other grid in the app goes
to four columns once there is width for them, and at four across a health card wraps its unit onto
a second line and flattens the sparkline that makes the grid readable at a glance.
Per profile, and private by construction. Each profile mints its own **ingest key** (write-only: it
can add to that one profile's health file and cannot read a single number back), and rotating it
disconnects a phone without signing anybody out. The health data lives in its own