From 3fb31866c721ef9cd07eea5151e00c1b154da9ad Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 13 Nov 2025 12:02:54 +0100 Subject: =?UTF-8?q?bouton=20et=20menu=20fix=C3=A9s=20sur=20petit=20=C3=A9c?= =?UTF-8?q?ran?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/js') 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(){ const nav = document.querySelector('nav'); // détection const nav_zone = document.getElementById('nav_zone'); const resize_observer = new ResizeObserver(entries => { // param de type tableau - let nav_button_height = window.innerWidth <= 600 ? 26 : 0; // 26 = taille du bouton - nav_button_height += nav.classList.contains('show') ? 15 : 0; + let nav_button_height = window.innerWidth <= 600 ? 26 : 0; // 26 = taille du bouton + nav_button_height += nav.classList.contains('show') ? 15 : 0; for(const entry of entries){ nav_zone.style.height = (entry.contentRect.height + nav_button_height) + 'px'; } -- cgit v1.2.3