Skip to content

fix(webui): center workspace pages at a shared maximum width - #1114

Merged
jatmn merged 1 commit into
mainfrom
fix/webui-page-width
Dec 2, 2026
Merged

jatmn merged 1 commit into
mainfrom
fix/webui-page-width

Conversation

@jatmn

@jatmn jatmn commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

The dashboard could stretch to 1,696px in a 1,920px viewport while chart pages stopped at 1,440px. The shared workspace container now owns that centered 1,440px limit for every tab and Administration. Below the limit, content fills the space available beside or below the sidebar. Compact forms retain their own reading widths.

The existing Firefox dashboard test now measures content width and centering in both themes at 700px, 1,280px, and 1,920px. The 1,920px case failed against the original stylesheet and passed after the change. The test runs the built WebUI against fixture API responses.

CI=true bash scripts/ci-preflight.sh --only frontend passed all 712 tests with no skips. cargo fmt --check and git diff --cached --check passed.

Reviewed commit 5da4926a2fa991e6543ab42d61df4a89d8bf30a7.

Summary by Sourcery

Constrain and center workspace pages consistently at a maximum width of 1,440px.

Bug Fixes:

  • Center workspace content at a shared maximum width of 1,440px across tabs and Administration, with narrower workspaces using their available width.

Tests:

  • Extend the dashboard browser test to verify workspace content width and centering across supported viewport sizes in both themes.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ No new issues found.

Approach The shared #content rule is the right place to center page content because it covers both workspace tabs and Administration.

Reviewed changes I traced the shared layout in both entry points and checked the regression assertions. The test file passed Node’s syntax check. The frontend CI job was still running during review. Frontend CI

  • Workspace layout. The shared container fills the available width up to 1,440px, with equal side margins on wider workspaces.
  • Chart tabs and Administration. Both inherit the shared width limit after removal of the page-specific rules.
  • Dashboard regression test. Firefox checks width and centering at 700px, 1,280px, and 1,920px in both themes.

Pullfrog  | View workflow run | Using gpt-6.2-sol | 𝕏

@jatmn
jatmn marked this pull request as ready for review December 2, 2026 16:34
@jatmn
jatmn merged commit de08139 into main Dec 2, 2026
15 checks passed
@jatmn
jatmn deleted the fix/webui-page-width branch December 2, 2026 16:35

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="frontend/app.js" line_range="1435" />
<code_context>
   return h(
     "div",
-    { className: "contents chart-page database-usage-page" },
+    { className: "contents database-usage-page" },
     pageHeader(
       "Database Usage",
</code_context>
<issue_to_address>
**Charts widen during rollout**

When a rolling deployment serves the new JavaScript and old stylesheet to the same browser, the old stylesheet has no shared `#content` width limit and relies on the removed `.chart-page` class to cap chart pages, so new JavaScript served with old CSS leaves those pages uncapped at wide viewports and they stretch to the workspace width.

Keep the chart-page classes until old stylesheets are no longer served, or version and pin the stylesheet and script to the same release.

Also at `frontend/app.js:1805`, `frontend/app.js:2525`, `frontend/app.js:4688`.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: frontend/app.js:1435


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread frontend/app.js Resolved
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