Skip to content

fix(site): wrap workspace topbar controls on narrow viewports#27313

Merged
ibetitsmike merged 1 commit into
mainfrom
mike/fix-workspace-topbar-mobile-overflow
Jul 17, 2026
Merged

fix(site): wrap workspace topbar controls on narrow viewports#27313
ibetitsmike merged 1 commit into
mainfrom
mike/fix-workspace-topbar-mobile-overflow

Conversation

@ibetitsmike

Copy link
Copy Markdown
Collaborator

On mobile-width viewports the workspace page grew to ~1080px wide (390px viewport), pushing the schedule controls, status indicator, and action buttons off-screen. Users had to zoom out or scroll horizontally to reach Stop/Restart/Favorite/Share.

The topbar header and the right-side controls group used non-wrapping flex rows, and every child is a whitespace-nowrap button, so the row's minimum width (~725px for the controls alone) forced the document wider than the viewport.

Changes

  • WorkspaceTopbar: allow the topbar header and the right controls group to wrap; right controls stay right-aligned when they wrap onto their own row.
  • WorkspaceActions: allow the button row to wrap.
  • TopbarData: merge a caller-provided className (no existing caller passed one); the workspace breadcrumbs use it to wrap on very narrow screens.

Verification

Compared before/after with agent-browser on Storybook stories (Workspace: Running, WorkspaceTopbar: Outdated / WithQuotaWithOrgs / Dormant / ConnectedWithMaxDeadline):

Viewport Before scrollWidth After scrollWidth
320 1080 (overflow) 305 (fits)
390 1080 (overflow) 375 (fits)
768 1080 (overflow) 753 (fits)
1024 1080 (overflow) 1009 (fits)
1440 1425 (fits) 1425, pixel-identical (0% diff)

At widths >= 1280 the layout is unchanged (0% pixel diff at 1440 across the stories above). Between ~1080-1230px the controls now wrap onto a second right-aligned row instead of squeezing label text onto two lines inside a single row.

Validation: biome check, tsc --noEmit, and pnpm test:storybook for Workspace.stories.tsx + WorkspaceTopbar.stories.tsx (36 passed).

This PR was prepared by Mux, an AI coding agent, on Mike's behalf.

@ibetitsmike

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 6b64997977

ℹ️ 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".

@ibetitsmike
ibetitsmike merged commit 36e36e2 into main Jul 17, 2026
48 of 49 checks passed
@ibetitsmike
ibetitsmike deleted the mike/fix-workspace-topbar-mobile-overflow branch July 17, 2026 16:12
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants