[openstreetmap/openstreetmap-website] Navbar going small unneccesarily (Issue #5664)
Jasper Platenburg
notifications at github.com
Wed Feb 12 23:01:35 UTC 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](https://github.com/openstreetmap/openstreetmap-website/blob/46f642d5cd88d51bd6e80e48cc24f7a6da68d4c7/app/assets/javascripts/application.js#L100)
### Screenshot(s) or anything else?

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](https://github.com/openstreetmap/openstreetmap-website/blob/46f642d5cd88d51bd6e80e48cc24f7a6da68d4c7/app/assets/javascripts/application.js#L115))
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5664
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/5664 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250212/758380da/attachment.htm>
More information about the rails-dev
mailing list