Skip to content

fix: remove sidebar margin on login and auth pages#540

Merged
pmilano1 merged 1 commit into
mainfrom
fix/login-sidebar-margin
Feb 23, 2026
Merged

fix: remove sidebar margin on login and auth pages#540
pmilano1 merged 1 commit into
mainfrom
fix/login-sidebar-margin

Conversation

@pmilano1

Copy link
Copy Markdown
Owner

Summary

  • MainContent was applying marginLeft: var(--sidebar-width) unconditionally
  • Sidebar already returns null on /login, /forgot-password, /reset-password — but the margin remained, creating a white gap

Fix

Check pathname in MainContent and set marginLeft: 0 on public (no-sidebar) pages.

Affected pages

/login, /forgot-password, /reset-password

MainContent was applying the sidebar margin unconditionally, causing a
white gap on the left of the login page (and forgot-password, reset-password)
even though the Sidebar correctly returns null on those routes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pmilano1 pmilano1 merged commit a928a1b into main Feb 23, 2026
1 check passed
@pmilano1 pmilano1 deleted the fix/login-sidebar-margin branch February 23, 2026 15:42
pmilano1 pushed a commit that referenced this pull request Feb 23, 2026
## [1.127.1](v1.127.0...v1.127.1) (2026-02-23)

### Bug Fixes

* remove sidebar margin on login and auth pages ([#540](#540)) ([a928a1b](a928a1b))
@pmilano1

Copy link
Copy Markdown
Owner Author

🎉 This PR is included in version 1.127.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant