You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by ey...@apache.org on 2021/02/09 20:55:55 UTC

[incubator-age] 11/18: Fixing menu on mobile

This is an automated email from the ASF dual-hosted git repository.

eya pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-age.git

commit cac0842680bf66a9f90b5b4475d807a161e45e95
Author: Nick Sorrell <ni...@cint.io>
AuthorDate: Wed Dec 2 17:00:28 2020 -0500

    Fixing menu on mobile
---
 assets/scripts/index.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/assets/scripts/index.js b/assets/scripts/index.js
index 2253c2b..1af5b34 100644
--- a/assets/scripts/index.js
+++ b/assets/scripts/index.js
@@ -35,8 +35,9 @@ var handleMenuClick = function (el) {
   let display = window.getComputedStyle(sidebar).display;
   if (display === "none") {
     sidebar.style.display = "block";
+    document.getElementById("sidebar-overview").scrollIntoView();
   } else {
-    sidebar.style.gridColumn = 0;
+    sidebar.style.display = "none";
   }
 }