Skip to content

Conversation

@DusKing1
Copy link
Contributor

Adjusts content width for larger screens and pins the right sidebar (TOC) to the screen edge on wide viewports. These changes enhance readability and layout consistency on large displays.

Adjusts content width for larger screens and pins the right sidebar (TOC) to the screen edge on wide viewports. These changes enhance readability and layout consistency on large displays.
@DusKing1 DusKing1 self-assigned this Jan 15, 2026
Copilot AI review requested due to automatic review settings January 15, 2026 14:48
Copy link

Copilot AI left a comment

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 enhances the layout and readability for large screen displays by implementing responsive content width adjustments and pinning the Table of Contents (TOC) sidebar to the screen edge. The changes remove hardcoded layout variables from the root CSS selector and instead apply them conditionally based on screen size using media queries.

Changes:

  • Removed static --sl-content-width and --sl-sidebar-width declarations from the :root selector
  • Added responsive media queries for content width (52rem at 72rem+ viewport, 58rem at 100rem+ viewport)
  • Pinned the right sidebar (TOC) to the screen edge on viewports 72rem and wider

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@DusKing1 DusKing1 merged commit f7f95b7 into master Jan 15, 2026
@DusKing1 DusKing1 deleted the hugo-improve-doc-layout branch January 15, 2026 14:58
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.

2 participants