Fix visibility for shown entities on device card (2) (#23198)

This commit is contained in:
ildar170975 2024-12-20 12:44:57 +03:00 committed by GitHub
parent 2fe6203eae
commit 3b52d3d302
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -266,10 +266,20 @@ export class HaDeviceEntitiesCard extends LitElement {
color: var(--secondary-text-color);
}
.move-up {
margin-top: -13px;
}
.move-up:has(> mwc-list) {
margin-top: -24px;
}
#entities > * {
margin: 8px 16px 8px 8px;
:not(.move-up) > mwc-list {
margin-top: -24px;
}
mwc-list + button.show-more,
.move-up + :not(:has(mwc-list)) > button.show-more {
margin-top: -12px;
}
#entities > mwc-list {
margin: 0 16px 0 8px;
}
#entities > paper-icon-item {
margin: 0;
@ -305,6 +315,9 @@ export class HaDeviceEntitiesCard extends LitElement {
outline: none;
text-decoration: underline;
}
mwc-list > * {
margin: 8px 0px;
}
ha-list-item {
height: 40px;
--mdc-ripple-color: transparent;