From f680bba3e6eafa2ee3c037977df42e6ae67977a6 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 13 Feb 2025 10:18:12 +0000 Subject: select navbar by id to avoid conflict with possible additional navbars --- view/tpl/cover_photo_widget.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view') diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl index 306dfe0b5..3099c69d1 100644 --- a/view/tpl/cover_photo_widget.tpl +++ b/view/tpl/cover_photo_widget.tpl @@ -106,7 +106,7 @@ // Actions when the cover is visible function coverVisibleActions() { document.body.style.cursor = 'n-resize'; - const navbar = document.querySelector('.navbar'); + const navbar = document.getElementById('navbar-top'); if (navbar) navbar.classList.remove('fixed-top'); const mainElement = document.querySelector('main'); if (mainElement) mainElement.style.opacity = 0; @@ -115,7 +115,7 @@ // Actions when the cover is hidden function coverHiddenActions() { document.body.style.cursor = ''; - const navbar = document.querySelector('.navbar'); + const navbar = document.getElementById('navbar-top'); if (navbar) navbar.classList.add('fixed-top'); const mainElement = document.querySelector('main'); if (mainElement) mainElement.style.opacity = 1; -- cgit v1.2.3