Skip to content

fix(admin): fit the header to a phone, wrapping the switchers' captions - #41

Open
xiregroup wants to merge 1 commit into
mainfrom
alexei/admin-header-360-b4ea4a
Open

xiregroup wants to merge 1 commit into
mainfrom
alexei/admin-header-360-b4ea4a

Conversation

@xiregroup

Copy link
Copy Markdown
Contributor

On a 360 px phone with Linux fonts the admin header cut off "Admin language" and crowded its neighbours (found by the errors session, PR #34).

  • The captions of the site and language switchers wrap onto a second line on a phone instead of being cut; from sm up they truncate as before.
  • The switchers' icons hide below 360 px; the user button keeps its size.
  • Colours are unchanged.
  • New Dusk test HeaderPhoneTest: emulates a phone through CDP (Emulation.setDeviceMetricsOverride) at 320, 360 and 375 px, in all 15 languages. It checks the page and header are not wider than the screen, no item of the bar is off the screen or lies on its neighbour, and no caption is cut, taller than two lines or outside the bar. It is red on the old layout (the long captions in 11 languages at 320 px, and fr, it, tr at 360 px) and green now, also with a wider font (Verdana) as a stand-in for Linux fonts.
  • packages/admin/dist rebuilt.

bin/ci --changed --dusk: everything is green except tests pgsql: backup, which fails here only for lack of pg_dump. Mutation has nothing to mutate: no PHP source changed.

On a 360 pixel phone with Linux fonts the header cut off "Admin language"
and crowded its neighbours. The captions wrap onto a second line, the
switchers' icons hide below 360 pixels and the user button keeps its size.
A Dusk test emulates phones of 320, 360 and 375 pixels through CDP and
checks all 15 languages.
@xiregroup
xiregroup enabled auto-merge November 18, 2026 10:49
@xiregroup
xiregroup disabled auto-merge November 18, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant