Skip to content

fix: reduce excess whitespace in blog layout on wide screens - #485

Open
gyliu513 wants to merge 1 commit into
llm-d:mainfrom
gyliu513:style
Open

fix: reduce excess whitespace in blog layout on wide screens#485
gyliu513 wants to merge 1 commit into
llm-d:mainfrom
gyliu513:style

Conversation

@gyliu513

Copy link
Copy Markdown
Member

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?

  • Tests added/updated (npm test)
  • Site builds successfully (npm run build:all)
  • Check links after buildling (npm run check-links)
  • Manual testing performed (npm run serve)

Checklist

  • Commits are signed off (git commit -s) per DCO
  • Code follows project contributing guidelines
  • Tests pass locally (npm test)
  • Site builds without errors (npm run build:all)
  • No broken links after building full site (npm run check-links)
  • Documentation updated (if applicable)

Related Issues

Signed-off-by: Guangya Liu <gyliu513@gmail.com>
@netlify

netlify Bot commented Aug 26, 2026

Copy link
Copy Markdown

Deploy Preview for llm-d ready!

Name Link
🔨 Latest commit 3752074
🔍 Latest deploy log https://app.netlify.com/projects/llm-d/deploys/6a8f0ad5e0c4cd0008a5099a
😎 Deploy Preview https://deploy-preview-485--llm-d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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 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 .container max-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 thread src/css/custom.css
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;
}
@petecheslock

Copy link
Copy Markdown
Member

Before:

Screenshot 2026-08-27 at 3 41 31 PM

After:

Screenshot 2026-08-27 at 3 41 41 PM

@ArshVermaGit ArshVermaGit 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.

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(*)).

@ahg-g

ahg-g commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

/approve

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.

5 participants