Skip to content

Commit

Permalink
fix: icon would be cut with card height defined
Browse files Browse the repository at this point in the history
#Fix #731
  • Loading branch information
RomRider committed Jul 26, 2023
1 parent 2df5392 commit 19f8393
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/button-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,7 @@ class ButtonCard extends LitElement {
const haIconStyle: StyleInfo = {
color,
width: this._config!.size,
'--ha-icon-display': haCardStyleFromConfig.height ? 'inline' : undefined,
position: !this._config!.aspect_ratio && !haCardStyleFromConfig.height ? 'relative' : 'absolute',
...haIconStyleFromConfig,
};
Expand Down

0 comments on commit 19f8393

Please sign in to comment.