Hide mobile bottom bar when drawer panels are open

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
adlee-was-taken 2026-02-22 14:38:14 -05:00
parent 8942238f9c
commit 65b4af9831

View File

@ -129,6 +129,7 @@ class GolfGame {
panel.classList.add('drawer-open'); panel.classList.add('drawer-open');
btn.classList.add('active'); btn.classList.add('active');
if (backdrop) backdrop.classList.add('visible'); if (backdrop) backdrop.classList.add('visible');
if (bottomBar) bottomBar.classList.add('hidden');
} }
}); });
} }
@ -142,6 +143,8 @@ class GolfGame {
document.querySelectorAll('.mobile-bar-btn.active').forEach(b => b.classList.remove('active')); document.querySelectorAll('.mobile-bar-btn.active').forEach(b => b.classList.remove('active'));
const backdrop = document.getElementById('drawer-backdrop'); const backdrop = document.getElementById('drawer-backdrop');
if (backdrop) backdrop.classList.remove('visible'); if (backdrop) backdrop.classList.remove('visible');
const bottomBar = document.getElementById('mobile-bottom-bar');
if (bottomBar) bottomBar.classList.remove('hidden');
} }
initAudio() { initAudio() {