Skip to content

Commit 19f8393

Browse files
committed
fix: icon would be cut with card height defined
#Fix #731
1 parent 2df5392 commit 19f8393

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/button-card.ts

+1
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,7 @@ class ButtonCard extends LitElement {
983983
const haIconStyle: StyleInfo = {
984984
color,
985985
width: this._config!.size,
986+
'--ha-icon-display': haCardStyleFromConfig.height ? 'inline' : undefined,
986987
position: !this._config!.aspect_ratio && !haCardStyleFromConfig.height ? 'relative' : 'absolute',
987988
...haIconStyleFromConfig,
988989
};

0 commit comments

Comments
 (0)