Skip to content

Fix JavaDoc full-width layout - #5476

Merged
liannacasper merged 1 commit into
masterfrom
fix-javadoc-full-width-layout
Jul 27, 2026
Merged

Fix JavaDoc full-width layout#5476
liannacasper merged 1 commit into
masterfrom
fix-javadoc-full-width-layout

Conversation

@shai-almog

Copy link
Copy Markdown
Collaborator

Summary

  • exclude the embedded API JavaDoc page from the new design system's 940px reading-width constraint
  • preserve the JavaDoc layout's existing full-width container rules

Root cause

The generic .post-single rule 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

  • built the Hugo site successfully
  • verified the generated stylesheet retains the JavaDoc full-width rules and excludes the API JavaDoc layout from the 940px constraint
  • git diff --check

Copilot AI review requested due to automatic review settings July 27, 2026 11:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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-javadoc articles from the .post-single 940px max-width constraint.
  • 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;
}
@github-actions

Copy link
Copy Markdown
Contributor

Cloudflare Preview

@liannacasper
liannacasper merged commit d61d702 into master Jul 27, 2026
12 checks passed
@liannacasper
liannacasper deleted the fix-javadoc-full-width-layout branch July 27, 2026 12:27
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.

3 participants