From bc4bded9324ac3fb2b605184cc4c0a8b37ea38ed Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Tue, 24 May 2022 00:43:34 +0200 Subject: [PATCH] Top bar in mobile mode with a button to open sidebar and zoom buttons suitable for mobile --- public/js/organization.js | 4 ++++ templates/organization.html.php | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/public/js/organization.js b/public/js/organization.js index c77738a..bab2d80 100644 --- a/public/js/organization.js +++ b/public/js/organization.js @@ -10,10 +10,14 @@ var responsiveDisplay = function() { menu.classList.remove('show'); menuOffcanvas.hide(); document.getElementById('container-pages').classList.remove('vh-100'); + document.getElementById('container-btn-zoom').style.top = '62px'; + document.getElementById('container-btn-zoom').style.right = '6px'; } else { menuOffcanvas.show(); document.getElementById('page-organization').style.paddingRight = "350px"; document.getElementById('container-pages').classList.add('vh-100'); + document.getElementById('container-btn-zoom').style.top = '6px'; + document.getElementById('container-btn-zoom').style.right = '368px'; } menu.classList.remove('d-md-block'); menu.classList.remove('d-none'); diff --git a/templates/organization.html.php b/templates/organization.html.php index f09a5cc..9f8eaf1 100644 --- a/templates/organization.html.php +++ b/templates/organization.html.php @@ -44,9 +44,9 @@
-
+
-
+
@@ -85,7 +85,10 @@
-
+
+ +
+
@@ -99,6 +102,6 @@ - + \ No newline at end of file