diff options
author | Mario <mario@mariovavti.com> | 2025-02-13 10:18:12 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-02-13 10:18:12 +0000 |
commit | f680bba3e6eafa2ee3c037977df42e6ae67977a6 (patch) | |
tree | 3d60e53dd383ff587729c113aaadb23470e326be /view | |
parent | ee6367a549007c1f76aaa82bdef0948b874947fa (diff) | |
download | volse-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.tpl | 4 |
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; |