Skip to content

Make the editor fit a phone screen #399

Closed

Description

@SirLouen

The editor should fit a 390 pixel phone screen.

Current state: the editor has no small screen rule. The settings sidebar always takes 280 pixels (editor.css:145-153), leaving about 110 pixels to write in. The header (editor.css:20-33) is one row that cannot wrap, so Save draft and Publish sit off screen and the trash dialog runs past the right edge. The floating block toolbar lies over the sidebar and hides the controls under it, such as the Gallery "Order by" select.

Proposal: below 782 pixels, copy WordPress. Keep the sidebar closed until a header button opens it over the canvas at full width. Set hasFixedToolbar so the block toolbar sits above the canvas, hide the Preview select and the breadcrumb, and show Save draft as an icon below 600 pixels.

Trigger: found by the visual check of #383. Main shows the same layout.

Activity

  1. added
    help wantedExtra attention is needed
    and removed
    help wantedExtra attention is needed
    on Oct 12, 2026
  2. self-assigned this
    on Oct 17, 2026
  3. SirLouen commented on Oct 18, 2026

    @SirLouen
    MemberAuthor

    The plan, copying the WordPress post editor:

    • The editor never grows wider than the screen.
    • A Settings button left of Publish shows and hides the sidebar at every width, and the sidebar gets a close button. From 782 pixels the sidebar slides in and out when you toggle it.
    • Below 782 pixels the sidebar starts closed and opens over the writing area at full width. Undo, Redo, the Preview select, the save state word and the breadcrumb leave the header, and the save button names the state instead: Save draft, Saving or Saved. The list view opens over the writing area.
    • Below 782 pixels the block toolbar keeps its own row above the writing area, greyed out until a block is selected, so the writing area never jumps.
    • Below 600 pixels the save button shows as an icon with the same three names, and the document name drops the post type. At 403 pixels and narrower the document name leaves the header.
    • The header becomes a three column grid, so the document name never covers a button.
    • On a phone the title and the blocks keep 30 pixels from each edge, as the default WordPress theme does.

    The widths come from godmin 0.22.0, which names the 600 and 404 pixel breakpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions