Fix margins

This commit is contained in:
Thomas Lovén 2019-03-01 10:46:21 +01:00
parent 51f7d0987d
commit aa426e7160

View File

@ -24,11 +24,20 @@ class LayoutCard extends cardTools.LitElement {
} }
firstUpdated() { firstUpdated() {
if(this.parentElement && this.parentElement.id !== "view")
{
this.style.padding = "0";
}
this.build(); this.build();
} }
static get styles() { static get styles() {
return cardTools.LitCSS` return cardTools.LitCSS`
:host {
padding: 8px 4px 0;
display: block;
}
#columns { #columns {
display: flex; display: flex;
flex-direction: row; flex-direction: row;