fix: Menu should render over drawer (#1589)

This commit is contained in:
Dermot Duffy
2024-09-27 18:27:36 -07:00
committed by GitHub
parent f560113031
commit 464a68ba03
2 changed files with 14 additions and 3 deletions
+10 -3
View File
@@ -48,7 +48,9 @@ frigate-card-loading {
div.main {
position: relative;
overflow: auto;
// Some elements (such as submenus) may need to extend beyond the card boundary.
overflow: visible;
width: 100%;
height: 100%;
margin: auto;
@@ -185,15 +187,20 @@ web-dialog::part(dialog) {
* Overlay styles
****************/
frigate-card-overlay {
z-index: 10;
// Higher than the drawer (menu renders over drawer).
z-index: 20;
}
/*******************
* Menu hover styles
*******************/
frigate-card-menu {
// z-index is within the overlay stacking context.
z-index: 1;
}
frigate-card-menu[data-style*='hover'] {
z-index: 20;
transition: opacity 0.5s ease;
opacity: 0;
}
+4
View File
@@ -25,6 +25,10 @@
// Don't let the drawer exceed 90% of the full width of the relative parent.
max-width: 90%;
// Drawer renders behind the menu/status-bar overlay (otherwise the drawer
// controls render on top of menu items)
z-index: 10;
}
:host([location='right']) #d {