fix(elements): make the result cards and the title more compact on a phone #199
+42
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Makes the result cards and the title of the Elements page more compact on a phone (peer feedback, #167).
Measured
Real browser, first page of results, light theme:
No sideways scroll at 320, 360 or 390 px. I first tried a drawing next to the text (cards of 162–182 px), but at 96 px wide the drawing could not be understood, so it is under the text.
Not met: the issue asks for about twice as many results on the first screen. A card is about 20 % shorter, and one card is still fully on the first screen. The filters take four rows at the top of a phone; making them smaller is a separate change.
Checks
tsc, eslint and prettier are clean; 183 tests insrc/tests/components/elementsandsrc/tests/pagespass. The e2e accessibility tests were not run for this change.Refs #169
🤖 Generated with Claude Code