Add width property to light card to fix #3964 (#3972)

* Add width property to light card to fix #3964

* Update Light Card Name CSS

* Update css per review
This commit is contained in:
shbatm 2019-10-18 15:58:25 -05:00 committed by Bram Kragten
parent be4d431dc3
commit 5a957c3c9e

View File

@ -212,10 +212,12 @@ export class HuiLightCard extends LitElement implements LovelaceCard {
.name {
position: absolute;
top: 160px;
left: 50%;
transform: translate(-50%);
font-size: var(--name-font-size);
bottom: 16px;
box-sizing: border-box;
text-align: center;
width: 100%;
padding: 0 16px;
}
.brightness {