Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix navbar responsiveness

Pacu2f213003be8e2
diff --git a/saleor/static/js/components/mobile/navbar.js b/saleor/static/js/components/mobile/navbar.js
index 85f3ef1196..bea4d1647d 100644
--- a/saleor/static/js/components/mobile/navbar.js
+++ b/saleor/static/js/components/mobile/navbar.js
@@ -4,9 +4,9 @@ const $mobileNav = $('nav');
const renderLoginBar = (e) => {
const $desktopLinkBar = $('.navbar__login');
const $mobileLinkBar = $('.navbar__menu__login');
- const windowWidth = $(window).width();
+ const windowWidth = window.innerWidth;
- if (windowWidth < 767) {
+ if (windowWidth < 768) {
const $desktopLinks = $desktopLinkBar.find('a');
if ($desktopLinks.length) {
$mobileNav.append('<ul class="nav navbar-nav navbar__menu__login"></ul>');