Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
Fix padding
Browse files Browse the repository at this point in the history
  • Loading branch information
zsarnett committed Dec 22, 2020
1 parent 74042c5 commit b07d81d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/grid-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ export class GridView extends LitElement {
</div>
<lit-grid-layout
rowHeight="40"
.containerPadding=${[8, 8]}
.margin=${[8, 8]}
.resizeHandle=${RESIZE_HANDLE}
.itemRenderer=${this._itemRenderer}
.layout=${this._layout}
Expand Down Expand Up @@ -207,7 +209,7 @@ export class GridView extends LitElement {

const cards = this._config.cards!.map(card => {
if (card.layout?.key) {
return;
return card;
}
card = { ...card, layout: { key: card.layout?.key || uuidv4() } };
return card;
Expand Down Expand Up @@ -348,7 +350,7 @@ export class GridView extends LitElement {
};

private _addCard(): void {
fireEvent(this, 'll-add-card' as any);
fireEvent(this, 'll-create-card' as any);
}

private _updateColumns(): void {
Expand Down

0 comments on commit b07d81d

Please sign in to comment.