Skip to content

Commit

Permalink
Update ha-device-entities-card.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ildar170975 authored Dec 7, 2024
1 parent 43f31dd commit e4479ee
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/panels/config/devices/device-detail/ha-device-entities-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
:not(.move-up) > mwc-list {
margin-top: -24px;
}
#entities > * {
margin: 8px 16px 8px 8px;
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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e4479ee

Please sign in to comment.