aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-02-13 10:18:12 +0000
committerMario <mario@mariovavti.com>2025-02-13 10:18:12 +0000
commitf680bba3e6eafa2ee3c037977df42e6ae67977a6 (patch)
tree3d60e53dd383ff587729c113aaadb23470e326be /view
parentee6367a549007c1f76aaa82bdef0948b874947fa (diff)
downloadvolse-hubzilla-f680bba3e6eafa2ee3c037977df42e6ae67977a6.tar.gz
volse-hubzilla-f680bba3e6eafa2ee3c037977df42e6ae67977a6.tar.bz2
volse-hubzilla-f680bba3e6eafa2ee3c037977df42e6ae67977a6.zip
select navbar by id to avoid conflict with possible additional navbars
Diffstat (limited to 'view')
-rw-r--r--view/tpl/cover_photo_widget.tpl4
1 files changed, 2 insertions, 2 deletions
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;