Skip to content

Commit 99126cb

Browse files
Copilotccamel
andauthored
fix(ui): fix mobile hamburger menu positioning (#724)
* Initial plan * Fix mobile hamburger menu positioning issue Remove problematic transform from navbar-sidebar CSS that was causing the mobile menu to be positioned outside the viewport. The custom transform: translate3d(100%, 0, 0) was preventing the sidebar from being visible when opened on mobile devices. Co-authored-by: ccamel <9574336+ccamel@users.noreply.github.com> * Fix mobile menu slide direction to match hamburger button position Adjust CSS to make mobile menu slide in from the right instead of left, providing better UX since the hamburger button is positioned on the right side. The menu now properly slides from the right edge of the screen when opened. Co-authored-by: ccamel <9574336+ccamel@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ccamel <9574336+ccamel@users.noreply.github.com>
1 parent c0aaec3 commit 99126cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/scss/main.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ html {
138138
transform: translate3d(100%, 0, 0);
139139
}
140140

141+
.navbar-sidebar--show .navbar-sidebar {
142+
transform: translate3d(0, 0, 0);
143+
}
144+
141145
.navbar__link--active {
142146
@include with-linear-gradient(--ifm-navbar-item-color);
143147

0 commit comments

Comments
 (0)