aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2025-11-13 12:02:54 +0100
committerpolo <ordipolo@gmx.fr>2025-11-13 12:02:54 +0100
commit3fb31866c721ef9cd07eea5151e00c1b154da9ad (patch)
tree7204180a603f115008f869476c313a1077f5619f /public/js
parent854bde3095c195a3c628be878fc776e16f4bd424 (diff)
downloadcms-3fb31866c721ef9cd07eea5151e00c1b154da9ad.tar.gz
cms-3fb31866c721ef9cd07eea5151e00c1b154da9ad.tar.bz2
cms-3fb31866c721ef9cd07eea5151e00c1b154da9ad.zip
bouton et menu fixés sur petit écran
Diffstat (limited to 'public/js')
-rw-r--r--public/js/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/main.js b/public/js/main.js
index fa02ddb..28a62ae 100644
--- a/public/js/main.js
+++ b/public/js/main.js
@@ -83,8 +83,8 @@ function navHeight(){
83 const nav = document.querySelector('nav'); // détection 83 const nav = document.querySelector('nav'); // détection
84 const nav_zone = document.getElementById('nav_zone'); 84 const nav_zone = document.getElementById('nav_zone');
85 const resize_observer = new ResizeObserver(entries => { // param de type tableau 85 const resize_observer = new ResizeObserver(entries => { // param de type tableau
86 let nav_button_height = window.innerWidth <= 600 ? 26 : 0; // 26 = taille du bouton 86 let nav_button_height = window.innerWidth <= 600 ? 26 : 0; // 26 = taille du bouton
87 nav_button_height += nav.classList.contains('show') ? 15 : 0; 87 nav_button_height += nav.classList.contains('show') ? 15 : 0;
88 for(const entry of entries){ 88 for(const entry of entries){
89 nav_zone.style.height = (entry.contentRect.height + nav_button_height) + 'px'; 89 nav_zone.style.height = (entry.contentRect.height + nav_button_height) + 'px';
90 } 90 }