diff --git a/InvenTree/static/script/sidenav.js b/InvenTree/static/script/sidenav.js index 2d0761f647..1520b91ea7 100644 --- a/InvenTree/static/script/sidenav.js +++ b/InvenTree/static/script/sidenav.js @@ -5,5 +5,5 @@ function openSideNav() { function closeSideNav() { document.getElementById("sidenav").style.width = "0"; - document.getElementById("inventree-content").style.marginLeft = "0"; + document.getElementById("inventree-content").style.marginLeft = "50px"; } \ No newline at end of file diff --git a/InvenTree/templates/base.html b/InvenTree/templates/base.html index ad81d24aed..1ba7605ab4 100644 --- a/InvenTree/templates/base.html +++ b/InvenTree/templates/base.html @@ -62,7 +62,12 @@ $(document).ready(function () { "#stock-tree"); $('#logo').click(function() { - openSideNav(); + if ($("#sidenav").width() == 0) { + openSideNav(); + } + else { + closeSideNav(); + } }); {% block js_ready %}