Skip to content

Reduce mobile toolbar wrapping and relocate fullscreen toggle#114

Merged
vchelaru merged 1 commit into
mainfrom
fix/mobile-toolbar-and-fullscreen
Jul 1, 2026
Merged

Reduce mobile toolbar wrapping and relocate fullscreen toggle#114
vchelaru merged 1 commit into
mainfrom
fix/mobile-toolbar-and-fullscreen

Conversation

@vchelaru

@vchelaru vchelaru commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Problem

On mobile the top toolbar wraps to multiple rows (Run, Examples, Share, Files, Gist, "?", build timestamp, fullscreen). The exact wrap point varies by device, but we can reduce the likelihood by trimming the row.

Changes

Toolbar space savings (mobile-only, gated to max-width: 767px / xf-hide-mobile):

  • Run/Restart/Stop → icon-only on mobile. The play/stop glyphs are universally recognizable; only the text labels are hidden (icons stay). Examples keeps its label — it's the primary first action for new users.
  • Hide the "built …" version timestamp on mobile (dev/version info, low value on a phone).
  • Fix the oversized About "?" control. It's an <a> (browser default box-sizing: content-box) while every other toolbar control is a <button> (border-box), so the mobile min-width/height: 44px touch-target rule added padding+border on top for the anchor — rendering it ~40% larger. Added box-sizing: border-box to the shared toolbar rule so it matches the buttons.

Fullscreen toggle relocation (all viewports):

  • Moved the editor-collapse / game-fullscreen toggle out of the toolbar into a single canvas overlay button, pinned top-right (kept off the top-left, where game UI/HUD typically lives). One button covers both directions — expand game (screen-full) / restore editor (screen-normal) — faint at 0.5 opacity until hovered. Frees another toolbar slot and keeps the affordance on the window it acts on.

Notes

  • dotnet build passes clean (0 warnings, 0 errors).
  • Pure markup/CSS; no logic changes, no unit tests apply. Worth an e2e mobile-viewport check if desired.
  • No e2e selectors referenced the removed toolbar fullscreen button.

🤖 Generated with Claude Code

Mobile toolbar was wrapping to multiple rows on phones. Trim the row
and fix an oversized control:

- Run/Restart/Stop buttons go icon-only on mobile (the play/stop
  glyphs are universally recognizable); labels wrapped in
  xf-hide-mobile. Examples keeps its label (primary new-user action).
- Hide the "built ..." version timestamp on mobile.
- Fix the About "?" anchor rendering ~40% larger than sibling buttons:
  it is an <a> (box-sizing: content-box) while the others are <button>
  (border-box), so the mobile min-width/height:44px rule added
  padding+border on top. Apply box-sizing: border-box in the toolbar
  rule so it matches.

Also relocate the editor-collapse / game-fullscreen toggle from the
toolbar into a single canvas overlay button, pinned top-right (off the
top-left where game UI/HUD lives). One button now covers both
directions (expand game / restore editor), faint at 0.5 opacity until
hovered. This frees another toolbar slot and keeps the affordance on
the window it acts on. Shows on desktop too.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vchelaru
vchelaru merged commit e3b841e into main Jul 1, 2026
1 check passed
@vchelaru
vchelaru deleted the fix/mobile-toolbar-and-fullscreen branch July 1, 2026 13:02
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