Restore menu to relative rendering.
This commit is contained in:
+8
-1
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -7,7 +7,3 @@
|
||||
mwc-list-item {
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
mwc-list-item[disabled] {
|
||||
color: var(--disabled-text-color);
|
||||
}
|
||||
Reference in New Issue
Block a user