Hide drawers if empty.
This commit is contained in:
1 parent
5bc1d3375c
commit
8ce15f87af
6 files changed
+49
-12
No files matched your search
@@ -22,7 +22,6 @@
|
||||
#d {
|
||||
// Need to allow drawer controls to be visible.
|
||||
overflow: visible;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
:host([location=right]) #d {
|
||||
|
||||
@@ -27,6 +27,12 @@ div.control-surround {
|
||||
}
|
||||
right: 100%;
|
||||
}
|
||||
:host([empty]), :host([empty]) > * {
|
||||
visibility: hidden;
|
||||
}
|
||||
:host(:not([empty])), :host(:not([empty])) > * {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
ha-icon.control {
|
||||
color: var(--secondary-color, white);
|
||||
|
||||
Reference in new issue
Block a user