Skip to content

Conversation

ronjalh
Copy link
Member

@ronjalh ronjalh commented Nov 11, 2026 •

What

Makes the result cards and the title of the Elements page more compact on a phone (peer feedback, #167).

  • Below 600 px the drawing is under the text, over the whole width of the card, at most 112 px high (it was up to 224 px). The apparatus, the element group and the difficulty are in a row that wraps. The padding and spacing are smaller. The two-column cards from 600 px are not changed.
  • The title of the Elements page is 40 px on a phone (was 34 px), with tighter margins.

Measured

Real browser, first page of results, light theme:

Before After
Height of a card (360 and 390 px) 356–372 px 258 px
Height of a card (320 px) 334 px 282 px
Title 34 px 40 px

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 in src/tests/components/elements and src/tests/pages pass. The e2e accessibility tests were not run for this change.

Refs #169

🤖 Generated with Claude Code

…phone

The drawing is to the right of the text below 600 px, the padding and spacing are smaller, and the title of the Elements page is 40 px (was 34 px). The cards are 162 to 182 px high (were 334 to 372 px).

Closes #169
@ronjalh ronjalh self-assigned this Nov 11, 2026
… a row on a phone

The drawing was 96 px wide and could not be understood. It is now under the text, at most 112 px high, and the apparatus, the element group and the difficulty are in a row that wraps below 600 px.

Refs #169
@ronjalh ronjalh marked this pull request as ready for review November 11, 2026 18:07
@ronjalh ronjalh requested a review from a team as a code owner November 11, 2026 18:07
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant