fix: reduce excess whitespace in blog layout on wide screens - #485
Open
gyliu513 wants to merge 1 commit into
Open
fix: reduce excess whitespace in blog layout on wide screens#485gyliu513 wants to merge 1 commit into
gyliu513 wants to merge 1 commit into
Conversation
Signed-off-by: Guangya Liu <gyliu513@gmail.com>
gyliu513
requested review from
Gregory-Pereira,
chcost,
clubanderson,
davidgs,
jjasghar,
petecheslock and
robertgshaw2-redhat
as code owners
August 26, 2026 15:48
✅ Deploy Preview for llm-d ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts the Docusaurus/Infima blog page layout CSS to reduce large empty side margins on wide viewports by letting the article column use available space more effectively and by widening the blog container at large breakpoints.
Changes:
- Adds a blog-specific rule to allow the article column to grow when there’s no right-hand TOC column, while capping prose width and centering it.
- Increases
.blog-wrapper .containermax-width at 1440px+ and 1920px+ to use more horizontal space on wide monitors.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+387
to
+392
| .blog-wrapper .row:not(:has(> .col--2)) > main[class*='col--'] { | ||
| flex: 1 1 0%; | ||
| max-width: 50rem; | ||
| margin-left: auto; | ||
| margin-right: auto; | ||
| } |
Member
ArshVermaGit
left a comment
There was a problem hiding this comment.
The new :has() selector may be unsupported in some target browsers, causing the entire layout rule to be ignored; please add a fallback or gate it with @supports selector(:has(*)).
Collaborator
|
/approve |
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.


What does this PR do?
Why is this change needed?
On wide viewports, blog post/list pages show large empty margins on the sides.
/cc @ahg-g @robertgshaw2-redhat
How was this tested?
npm test)npm run build:all)npm run check-links)npm run serve)Checklist
git commit -s) per DCOnpm test)npm run build:all)npm run check-links)Related Issues