Fix JavaDoc full-width layout - #5476
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the documentation website’s design-system CSS to ensure the embedded API JavaDoc page (/javadoc/) is not constrained by the generic “reading width” layout rule, restoring the intended full-width JavaDoc layout while leaving other article layouts unchanged.
Changes:
- Excludes
.post-single--api-javadocarticles from the.post-single940pxmax-widthconstraint. - Preserves existing JavaDoc-specific full-width rules by preventing the generic constraint from applying on that page.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1271
to
1273
| .post-single:not(.cn1-pricing-page):not(.post-single--demo):not(.post-single--api-javadoc) { | ||
| max-width: 940px; | ||
| } |
Contributor
Cloudflare Preview
|
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.
Summary
Root cause
The generic
.post-singlerule added by the new website design had greater specificity than the JavaDoc page's full-width rule. It constrained the JavaDoc article to 940px while the page-specific zero margin kept it anchored to the left.Impact
The
/javadoc/page once again uses the available viewport width. Regular article, pricing, and demo layouts are unchanged.Validation
git diff --check