question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FORUM] - Nav bar is misaligned on dropdown event

See original GitHub issue

Describe 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:

  1. Go to https://forum.freecodecamp.org
  2. Scroll the page down a bit.
  3. Click on the Menu button in the top right of the nav.
  4. Nav bar drops to centre of screen.

Expected behavior

The nav-bar should remain fixed in place.

Screenshots

image

Desktop (please complete the following information):

  • OS: Windows 10 version 1909
  • Browser: Chrome
  • Version: 86.0.4240.198

Additional context

/cc @ieahleen @bradtaniguchi

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
ahmadabdolsahebcommented, Nov 26, 2020

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.

0reactions
lasjorgcommented, Nov 26, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found