Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navbar on mobile seems to have css issues #495

Closed
shubh54 opened this issue Dec 8, 2018 · 0 comments
Closed

Navbar on mobile seems to have css issues #495

shubh54 opened this issue Dec 8, 2018 · 0 comments

Comments

@shubh54
Copy link

shubh54 commented Dec 8, 2018

Bug Report

Navbar on mobile is broken because of css issues

Navbar on mobile is not working as expected. If you click on some section inside a page say /a/#b which scrolls you down, navbar position goes for a toss. Please take a look at screenshot below
screen shot 2018-12-08 at 9 03 27 pm

Issue is due to incorrect css.
<div class="a"><div class="b"></div></div>

.a { width: 280px; min-width: 280px; min-height: 100vh; z-index: 1000; position: absolute; background: rgb(238, 241, 245); transition: transform 0.2s ease 0s, background 0.3s ease 0s; }

.b { position: fixed; top: 0px; left: 0px; display: flex; flex-direction: column; width: 280px; min-width: 280px; height: 100%; max-height: 100vh; }

Issue is fixed if you change position: absolute to position: fixed in class a.

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

No branches or pull requests

2 participants