Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix navbar responsiveness
Pacu2f213003be8e2
diff --git a/saleor/static/js/components/mobile/navbar.js b/saleor/static/js/components/mobile/navbar.jsindex 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>');