diff --git a/themes/one-pager/assets/css/style.css b/themes/one-pager/assets/css/style.css index 8c75c04..5a07fb6 100644 --- a/themes/one-pager/assets/css/style.css +++ b/themes/one-pager/assets/css/style.css @@ -743,6 +743,7 @@ button { cursor: pointer; transition: all 0.3s ease; margin-top: 0.8rem; + z-index: 10; } .lyrics-toggle:hover { diff --git a/themes/one-pager/assets/js/scripts.js b/themes/one-pager/assets/js/scripts.js index e176862..fc96e78 100644 --- a/themes/one-pager/assets/js/scripts.js +++ b/themes/one-pager/assets/js/scripts.js @@ -222,9 +222,10 @@ function renderMusicTracks(tracks, containerId, randomize = false) { card.className = 'music-card clickable'; card.dataset.playlistIndex = index; - // Click on card opens lightbox + // Click on card opens lightbox (except when clicking on info button) card.addEventListener('click', function(e) { - if (e.target.closest('audio') || e.target.closest('.lyrics-toggle') || e.target.closest('.lyrics')) { + // Don't trigger if clicking on lyrics-toggle or inside lyrics + if (e.target.closest('.lyrics-toggle') || e.target.closest('.lyrics')) { return; } const idx = parseInt(this.dataset.playlistIndex); @@ -259,6 +260,7 @@ function renderMusicTracks(tracks, containerId, randomize = false) { content = originalTrack.content || ''; } + // Build the card HTML let cardHTML = `