Repository navigation
fix(webui): center workspace pages at a shared maximum width - #1114
Merged
Merged
Conversation
There was a problem hiding this comment.
✅ 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.
gpt-6.2-sol | 𝕏
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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 frontendpassed all 712 tests with no skips.cargo fmt --checkandgit diff --cached --checkpassed.Reviewed commit
5da4926a2fa991e6543ab42d61df4a89d8bf30a7.Summary by Sourcery
Constrain and center workspace pages consistently at a maximum width of 1,440px.
Bug Fixes:
Tests: