[FORUM] - Nav bar is misaligned on dropdown event
See original GitHub issueDescribe the bug
When selecting one of the dropdown menu options on the forum, if the page is scrolled down at all the nav bar drops to the middle of the page.
To Reproduce Steps to reproduce the behavior:
- Go to https://forum.freecodecamp.org
- Scroll the page down a bit.
- Click on the
Menu
button in the top right of the nav. - Nav bar drops to centre of screen.
Expected behavior
The nav-bar should remain fixed in place.
Screenshots
Desktop (please complete the following information):
- OS: Windows 10 version 1909
- Browser: Chrome
- Version: 86.0.4240.198
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Nav bar dropdown alignment weird behavior - Forum | Webflow
I'm having some trouble getting the dropdowns in my nav bar to align properly - I had to give each dropdown list a...
Read more >Navigation Bar: Drop-down Menu Alignment
I am having trouble aligning the text in the drop-down menus in my navigation bar. I wanted the drop-down menu text to be...
Read more >CSS Head Nav and Dropdown Menu Alignment problem
I wanted to create a right aligned menu that was set to the bottom of the head div. I got everything to work...
Read more >Why are these buttons getting misaligned - HTML & CSS - SitePoint ...
I found that the logo was causing the problem. So I added a 20% margin to the navbar dropdowns to move them back...
Read more >Drop down menus issues in CMS - ServiceNow Community
This issue is caused by Prototype.js, and in past releases of the platform it could be resolved through a JavaScript solution that fixed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for bring this to my attention, @nhcarrigan.
@lasjorg, that is discourse’s default behavior. That element gets removed from the dom. I am aware of the margin. The is a pr is the works that would completely remove those nav items in favor of icons.
It seems the main issue has been resolved, so I am closing this issue accordingly.
Feel free to re-open this issue if the issue persists.
@ahmadabdolsaheb Right, I had some time to actually look at it, as you said there is DOM manipulation on scroll that only happens when viewing a thread. I guess the button being removed is to make room for the thread title in the header and because we hide the title it just looks a little off to me (once you see it you can’t unsee it kind of thing).
The menu being removed on scroll seems more like some technical limitation and is in my opinion not great UX (only happens on scroll when the header “switches” to have/not have the thread title). But that’s not our fault.