Skip to content

fix:resolve horizontal scroll overflow on mobile viewports#1125

Merged
saurabhraghuvanshii merged 3 commits into
layer5io:masterfrom
PARTH-TUSSLE:fix/mobile-horizontal-scroll
Jun 26, 2026
Merged

fix:resolve horizontal scroll overflow on mobile viewports#1125
saurabhraghuvanshii merged 3 commits into
layer5io:masterfrom
PARTH-TUSSLE:fix/mobile-horizontal-scroll

Conversation

@PARTH-TUSSLE

Copy link
Copy Markdown
Contributor

Notes for Reviewers

This PR addresses an issue where documentation pages (e.g., /kanvas, /cloud, etc.) had an unintended horizontal scrollbar/extra white space on the right side on narrow mobile viewports.

Specific Changes:

Footer (_footer_project.scss): Replaced margin: -12px; with margin: 0;. The negative margin was pushing the footer 12px outside of its container on all sides.
Navbar Brand (_navbar_project.scss): Changed the hard-coded width: 280.06px; to max-width: 280.06px; width: 100%; so the logo shrinks fluidly on screens narrower than 280px.
Navbar Padding (_styles_project.scss): The .navbar-dark was applying a rigid 5rem horizontal padding globally, forcing the navbar to be at least 160px wider than its content. Wrapped the padding in a Bootstrap media-breakpoint-up(md) , defaulting to 1rem on mobile and preserving the 5rem padding for desktop layouts.

{457596A9-5D13-44A6-ADC4-1ED9EF67E1B2}

This PR fixes #1116

Signed commits

  • [✅ ] Yes, I signed my commits.

Signed-off-by: PARTH-TUSSLE <parthgartan26feb@gmail.com>

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request improves the responsiveness of the project's layout by resetting the footer margin, making the navbar brand container fluid, and adjusting the navbar padding using media breakpoints. The reviewer suggested ensuring that any nested logo image inside the navbar brand scales fluidly on narrow viewports by applying responsive constraints.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread assets/scss/_navbar_project.scss
@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2026-06-26 07:41 UTC

Signed-off-by: PARTH-TUSSLE <parthgartan26feb@gmail.com>
@PARTH-TUSSLE

Copy link
Copy Markdown
Contributor Author

Hey @rishiraj38 , @saurabhraghuvanshii , would appreciate a review.

@saurabhraghuvanshii saurabhraghuvanshii merged commit 0c5d9cb into layer5io:master Jun 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI] Unintended extra space on the right on smaller viewports

2 participants