Skip to content

fix(web): floor every dashboard page region at zero width - #284

Closed
Menci wants to merge 2 commits into
fluent-dashboardfrom
fluent-dashboard-page-width
Closed

fix(web): floor every dashboard page region at zero width#284
Menci wants to merge 2 commits into
fluent-dashboardfrom
fluent-dashboard-page-width

Conversation

@Menci

@Menci Menci commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Stacked on #277.

Summary

  • every route wraps its content in a single-column grid marked min-w-0, which lets the region shrink but leaves its column at auto; an auto column grows to the widest child's min-content, so one long message bar pushed the whole page past the viewport and took the page header and its primary action off screen
  • the wrapper becomes a dashboard-page UnoCSS shortcut that pins the column to minmax(0, 1fr)

Verification

Reproduced on the Upstreams page with the real warning bar and measured main before and after:

main.scrollWidth main.clientWidth page track
before 1455 1210 1427px
after 1210 1210 1154px

With the column floored, the message bar switches to its multiline layout and wraps rather than truncating. Wide content inside a panel no longer widens the page either (checked by injecting a 400-character unbreakable string into a panel: main.scrollWidth stays at the viewport width).

  • pnpm run lint
  • pnpm --filter @floway-dev/web run typecheck
  • pnpm --filter @floway-dev/web run test — 188 tests passed

Menci added 2 commits July 29, 2026 00:10
Each route wraps its content in a single-column grid marked min-w-0, which
lets the region itself shrink but leaves its column at `auto` — and an
auto column grows to the widest child's min-content. One long error
message bar was enough to push a page past the viewport, taking its
header and its primary action off screen with it.

The wrapper becomes a `dashboard-page` shortcut that pins the column to
`minmax(0, 1fr)`, so the region stays the viewport's width and the message
bar wraps onto a second line instead.
@Menci

Menci commented Jul 28, 2026

Copy link
Copy Markdown
Owner Author

Codex agent: Consolidating this follow-up into #277 as requested; the branch remains available while its changes are merged and verified there.

@Menci Menci closed this Jul 28, 2026
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