From bb95ba933b4edb41a104ffde176ce2e79cd5690a Mon Sep 17 00:00:00 2001 From: rulingcom Date: Tue, 7 Dec 2021 05:50:48 +0000 Subject: [PATCH] set smaller width for menu --- assets/javascripts/app.js | 2 +- assets/stylesheets/template/modules/menu.scss | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 8a7f4a6..be8f95d 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -826,7 +826,7 @@ function transdate(){ e.preventDefault(); } }); - $('.modules-menu-level-1').css('left','-'+$('.outdropdowns .dropdowns').offset().left+'px'); + //$('.modules-menu-level-1').css('left','-'+$('.outdropdowns .dropdowns').offset().left+'px'); $(".downIcon").click(function() { var move_to_target=function (stop) { var theTop; diff --git a/assets/stylesheets/template/modules/menu.scss b/assets/stylesheets/template/modules/menu.scss index 8b8ff46..da9e86a 100644 --- a/assets/stylesheets/template/modules/menu.scss +++ b/assets/stylesheets/template/modules/menu.scss @@ -179,12 +179,12 @@ @media(min-width:769px){ flex-wrap: wrap; justify-content: flex-start; - left:0; + right: 0; display: flex; visibility: hidden; position: fixed!important; opacity: 0; - width: 100vw; + width: 80vw; box-shadow: 2px 2px 5px #00000033; margin: 0.8em 0; padding: 0;