Skip to content

Commit

Permalink
Add spacing between icon and name in entity button bar (#20492)
Browse files Browse the repository at this point in the history
* Fix width between icon and name

* Remove no-text
  • Loading branch information
silamon authored and bramkragten committed Apr 12, 2024
1 parent ab49aca commit 2e505cf
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/panels/lovelace/components/hui-buttons-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export class HuiButtonsBase extends LitElement {
.stateObj=${stateObj}
.overrideIcon=${entityConf.icon}
.overrideImage=${entityConf.image}
class=${name ? "" : "no-text"}
.stateColor=${true}
slot="icon"
></state-badge>
Expand Down Expand Up @@ -92,27 +91,8 @@ export class HuiButtonsBase extends LitElement {
color: var(--secondary-text-color);
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
margin-left: -4px;
margin-inline-start: -4px;
margin-inline-end: initial;
margin-top: -2px;
}
state-badge.no-text {
width: 26px;
height: 26px;
margin-left: -3px;
margin-inline-start: -3px;
margin-inline-end: initial;
margin-top: -3px;
}
ha-assist-chip state-badge {
margin-right: -4px;
margin-inline-end: -4px;
margin-inline-start: initial;
--mdc-icon-size: 18px;
}
@media all and (max-width: 450px), all and (max-height: 500px) {
.ha-scrollbar {
flex-wrap: nowrap;
Expand Down

0 comments on commit 2e505cf

Please sign in to comment.