fix(immersive): close popups and raise z-index on open (#47)
Dropdowns and popups with z-index 10000 were appearing over the immersive player (z-index 100). Raise immersive to 10001 and call closeAll() on the floating menu store when entering immersive mode.
This commit is contained in:
1 parent
c87f8f982e
commit
348d57e84f
2 files changed
+5
-1
No files matched your search
@@ -484,7 +484,7 @@
|
||||
.immersive-player {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 100;
|
||||
z-index: 10001; /* Above all dropdowns/popups (z-index: 10000) */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: var(--bg-primary, #0a0a0b);
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* Manages overlay and modal visibility states across the app.
|
||||
*/
|
||||
|
||||
import { closeAll as closeAllMenus } from './floatingMenuStore';
|
||||
|
||||
// Overlay states
|
||||
let isQueueOpen = false;
|
||||
let isFullScreenOpen = false;
|
||||
@@ -63,6 +65,7 @@ export function getFullScreenOpen(): boolean {
|
||||
}
|
||||
|
||||
export function openFullScreen(): void {
|
||||
closeAllMenus();
|
||||
isFullScreenOpen = true;
|
||||
notifyListeners();
|
||||
}
|
||||
@@ -84,6 +87,7 @@ export function getFocusModeOpen(): boolean {
|
||||
}
|
||||
|
||||
export function openFocusMode(): void {
|
||||
closeAllMenus();
|
||||
isFocusModeOpen = true;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user