Skip to content

Commit

Permalink
Fix layout inside grid (#1388)
Browse files Browse the repository at this point in the history
* Add in grid parameter

* Fix card layout in grid

* Revert changes
  • Loading branch information
piitaya committed Mar 7, 2024
1 parent fd2eb03 commit 94d6456
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cards/template-card/template-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export class TemplateCard extends MushroomBaseElement implements LovelaceCard {
}

public getLayoutOptions(): LovelaceLayoutOptions {
this._inGrid = true;
const options = {
grid_columns: 2,
grid_rows: 1,
Expand Down
1 change: 1 addition & 0 deletions src/utils/base-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export class MushroomBaseCard<
}

public getLayoutOptions(): LovelaceLayoutOptions {
this._inGrid = true;
const options = {
grid_columns: 2,
grid_rows: 1,
Expand Down

0 comments on commit 94d6456

Please sign in to comment.