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 going small unneccesarily #5664

Open
jxpsert opened this issue Feb 12, 2025 · 3 comments
Open

Navbar going small unneccesarily #5664

jxpsert opened this issue Feb 12, 2025 · 3 comments

Comments

@jxpsert
Copy link

jxpsert commented Feb 12, 2025

URL

https://www.openstreetmap.org

How to reproduce the issue?

  1. Use monitor with 2560x1440 resolution (also tested on 1920x1080)
  2. Use Firefox (version 135.0, Windows 11)
  3. Open OSM homepage in full screen browser window
  4. Body gets 'small-nav' class (as per applications.js lines 99-105)

Screenshot(s) or anything else?

Image

I would expect to see the regular navbar here, as I'm using a desktop.
Computing the compactWidth in the dev console comes out to 2590, while $(window).width() returns 2560.
I suspect something is going wrong in calculating the width. (applications.js lines 115-123)

@tomhughes
Copy link
Member

I regularly use firefox on hidpi screens and don't see this so there must be something unusual about your environment I think.

@tomhughes
Copy link
Member

I just tried it in responsive mode on a 4K screen with device size set to 2560x1440 and $(window).width() was 2560 while compactWidth was only coming out at about 500 so clearly there's something different in your environment.

What language are you using? Is it something with very long strings?

@jxpsert
Copy link
Author

jxpsert commented Feb 13, 2025

Just English.
This only started happening a few days ago. I've since cleared all types of cookies and cache of the site multiple times.

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