diff --git a/docs/AI_USAGE.md b/docs/AI_USAGE.md index 44e324f..f5ee175 100644 --- a/docs/AI_USAGE.md +++ b/docs/AI_USAGE.md @@ -596,3 +596,10 @@ - **What the team did:** Took the peer feedback that the README (about 59 kB) is too long to find your way in, wrote issue #182, and asked for the reasoning to be kept. - **What Claude did:** Moved four long sections unchanged to their own documents (`ELEMENTS_PAGE.md`, `DATABASE_SETUP.md`, `CATALOG_SEARCH.md`, `E2E_TESTS.md`) with a short summary and a link in the README (now about half the size). Added a "Where is what" table that points from each feature to the file where it starts, and a list of contents at the top of `docs/API.md`. A script checked that every relative link and anchor in the changed files works. - **Limits:** The text of the moved sections was not shortened or checked again, so what was outdated in them is still outdated (that is issue #148). A first run of the move emptied `README.md` because a formatting command was cut off in a pipe; it was restored from git and run again. + +## The result cards and the title on a phone (`src/components/elements/ResultsTable.tsx`, `src/styles/global.css`) + +- **Tool:** Claude Code +- **What the team did:** Took the peer feedback that a result card on a phone takes almost a whole screen and that the title is a little small (issue #169). +- **What Claude did:** Measured the cards first in a real browser at 320, 360 and 390 px in both themes (334 to 372 px high, one card fully on the first screen). After the first version Ronja looked at the cards in the browser and asked for a fix for each thing that was not logical (the drawing was too small to understand, the spacing of the fields); the changes were tried one by one and those she did not want were undone. Tried a small drawing next to the text (the cards were 162 to 182 px, but the drawing was 96 px wide and could not be understood), and a switch "Show drawings" (not kept, the team did not want one more control). Kept the drawing under the text, at most 112 px high (it was up to 224 px), and put the apparatus, the element group and the difficulty in a row that wraps below 600 px. The title of the Elements page is 40 px (was 34 px) with smaller margins. +- **Limits:** Measured on one machine with the first page of the results. The cards are about 258 px high at 360 and 390 px and 282 px at 320 px (before: 334 to 372 px), so about one card fully on the first screen and not twice as many results as the issue asked for. The two-column cards from 600 px are not changed. diff --git a/src/components/elements/ResultsTable.tsx b/src/components/elements/ResultsTable.tsx index 8ff38d8..cfea747 100644 --- a/src/components/elements/ResultsTable.tsx +++ b/src/components/elements/ResultsTable.tsx @@ -39,7 +39,7 @@ function ResultCards({ rows }: { rows: ElementListRow[] }) { {rows.map((row) => (
{row.description}
-+ {row.description} +
+ {/* Below 600 px the three pairs are in a row that wraps, to save height. From + 600 px they are a table of two columns (each pair is then "contents"). */} +