Skip to content

[Website] Align mobile Dock pane titles, toolbars, and forms - #4084

Merged
adamziel merged 12 commits into
trunkfrom
dock-mobile-responsive-panels
Jul 16, 2026
Merged

[Website] Align mobile Dock pane titles, toolbars, and forms#4084
adamziel merged 12 commits into
trunkfrom
dock-mobile-responsive-panels

Conversation

@adamziel

@adamziel adamziel commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Dock panes now use consistent header spacing from desktop to mobile. Desktop titles have 24px top padding down to 1025px. At 1024px and narrower, the existing full-screen mobile header keeps its 20px top padding, 24px left inset, and centered 44×44 X.

Before this PR, each pane solved its mobile header separately. The X sat at different heights. Blueprint and Files hid the shared heading and let the X float over their controls. Your Playgrounds had three left edges. Site Settings crowded a checkbox against its select. Files truncated the filename before the directory. Store permanently put Cancel and Save together with no gap.

At 390px and wider, Blueprint keeps Blueprint, Help, Browse files, Export, and X on one line. At 388px and narrower, Browse files and Export move together to a second line. Files keeps the current path beside the title, preserves /wp-config.php when space runs out, and aligns Browse files and Save with the title gutter. Site Settings stacks labels above full-width selects and separates dependent checkboxes. Your Playgrounds uses one left edge. Cancel and Save use the same 16px action gap as other modal footers.

Desktop header spacing at 1440×900

Pane Before After
New Playground Desktop New Playground pane before Desktop New Playground pane after
Your Playgrounds Desktop Your Playgrounds pane before Desktop Your Playgrounds pane after
Blueprint Desktop Blueprint pane before Desktop Blueprint pane after
Site Settings Desktop Site Settings pane before Desktop Site Settings pane after
Database Desktop Database pane before Desktop Database pane after
Files Desktop Files pane before Desktop Files pane after
Logs Desktop Logs pane before Desktop Logs pane after
Export Desktop Export pane before Desktop Export pane after
Store permanently Desktop Store permanently pane before Desktop Store permanently pane after

Mobile before and after at 390×844

Pane Before After
New Playground New Playground before New Playground after
Your Playgrounds Your Playgrounds before Your Playgrounds after
Blueprint Blueprint before Blueprint after
Site Settings Site Settings before Site Settings after
Database Database before Database after
Files Files before Files after
Logs Logs before Logs after
Export Export before Export after
Store permanently Store permanently before Store permanently after

Testing

On desktop, open each Dock pane and confirm its title starts 24px from the top. Resize through 1025px and 1024px and confirm the mobile header changes only at the existing breakpoint.

At 390×844, open every pane and confirm the title, subtitle, and X match the after screenshots without overlaps or horizontal scrolling. At 320px, confirm Blueprint wraps only its two labelled actions, Files keeps the filename visible, and Cancel and Save remain separated.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Aligns mobile Dock pane titles and close controls by moving the close button into a shared title row (including for panes that omit the shared header on desktop), and adjusts the Files editor toolbar layout to use available width without overlap.

Changes:

  • Add a mobile-only “editor header” title row for panes that don’t render the shared header, and place the close button within the title row.
  • Update mobile Dock pane layout and close button sizing/positioning to a consistent 44×44 target.
  • Convert the Files editor mobile header layout to a 3-column grid so the path can ellipsize between actions.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
packages/playground/website/src/components/dock/style.module.css Adds mobile title-row/editor-header styling and updates close button layout/sizing.
packages/playground/website/src/components/dock/dock-pane.tsx Refactors close button rendering and injects it into the title row (or mobile editor header when shared header is omitted).
packages/playground/components/src/PlaygroundFileEditor/playground-file-editor.module.css Switches Files editor header on dock presentation to grid layout and removes prior wrap/ordering hacks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/playground/website/src/components/dock/dock-pane.tsx
Comment thread packages/playground/website/src/components/dock/dock-pane.tsx
Comment thread packages/playground/website/src/components/dock/style.module.css
@adamziel adamziel changed the title [Website] Align mobile Dock pane titles and close controls Jul 16, 2026
@adamziel
adamziel merged commit 8082702 into trunk Jul 16, 2026
53 checks passed
@adamziel
adamziel deleted the dock-mobile-responsive-panels branch July 16, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment