Restore menu to relative rendering.

This commit is contained in:
Dermot Duffy
2022-03-13 11:21:21 -07:00
parent 10d36a4c3e
commit 117f5d6fdc
5 changed files with 44 additions and 74 deletions
+8 -1
View File
@@ -13,6 +13,11 @@
margin: auto;
display: flex;
justify-content: center;
// Need to apply the border radius on the container level, as the ha-card has
// overflow visible in order to allow a submenu to extend beyond the card
// boundary.
border-radius: var(--ha-card-border-radius, 4px);
}
.frigate-card-contents {
@@ -58,7 +63,9 @@ ha-card {
display: flex;
flex-direction: column;
margin: auto;
overflow: hidden;
// Some elements (such as submenus) may need to extend beyond the card boundary.
overflow: visible;
width: 100%;
height: 100%;
position: static;
+8
View File
@@ -18,6 +18,14 @@
width: 100%;
background: var(--secondary-background-color);
}
:host([data-mode="above"]) {
border-top-left-radius: var(--ha-card-border-radius, 4px);
border-top-right-radius: var(--ha-card-border-radius, 4px);
}
:host([data-mode="below"]) {
border-bottom-left-radius: var(--ha-card-border-radius, 4px);
border-bottom-right-radius: var(--ha-card-border-radius, 4px);
}
:host([data-mode$="-left"]) {
left: 0px;
-4
View File
@@ -7,7 +7,3 @@
mwc-list-item {
z-index: 20;
}
mwc-list-item[disabled] {
color: var(--disabled-text-color);
}