Improve mobile editor usability - #4
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e49883dc26
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
| .toolbar-actions > * { min-width: 0; } | ||
| .toolbar-actions .dropdown-toggle { width: 100%; min-height: 30px; padding-inline: 3px; white-space: nowrap; } | ||
| .toolbar-actions > .dropdown:nth-child(-n + 2) .dropdown-menu { right: auto; left: 0; } |
There was a problem hiding this comment.
Keep the File menu within narrow phone viewports
On 320 px-wide phones, only Arrange and View are left-aligned; File retains right: 0 while its min-w-64 menu is 256 px wide. The File button's third grid column ends at roughly 213 px, so the menu starts off-screen to the left and is clipped by html, body { overflow: hidden }, making import/export and save actions inaccessible. Align File to the viewport edge (or otherwise clamp/reposition its menu) at these widths as well.
Useful? React with 👍 / 👎.
What changed
Why
At phone widths, the wrapped toolbar used
overflow: hidden, which clipped core editor controls and could also clip dropdown menus. The new layout keeps the full editing surface usable on GitHub Pages across desktop and mobile viewports.Validation
npm testnpm run build