fix: icon would be cut with card height defined

#Fix #731
This commit is contained in:
Jérôme Wiedemann 2023-07-26 07:51:27 +00:00
parent 2df5392dd9
commit 19f8393193
1 changed files with 1 additions and 0 deletions

View File

@ -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,
};