Skip to content

Commit

Permalink
Mobile nav: position fixed if logged in and preview mode
Browse files Browse the repository at this point in the history
  • Loading branch information
falkodev committed Oct 12, 2024
1 parent 5ed5e6e commit 95cb5fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/modules/asset/ui/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ export default () => {

if (openMobileNavButton) {
openMobileNavButton.addEventListener('click', () => {
const previewMode = document.querySelector('[data-apos-refreshable][data-resizable]')
if (previewMode) {
mobileNav.style.top = '50px'
}
mobileNav.classList.add('pdl-mobile-nav--open')

// hide hamburger icon
Expand Down

0 comments on commit 95cb5fc

Please sign in to comment.