Looser layout limits for graph cards (#23910)

This commit is contained in:
Petar Petrov 2025-01-28 09:36:20 +02:00 committed by GitHub
parent 41770a89b4
commit 05b8a48ba8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ export class HuiHistoryGraphCard extends LitElement implements LovelaceCard {
columns: 12,
rows: 6,
min_columns: 6,
min_rows: (this._config?.entities?.length || 1) * 2,
min_rows: this._config?.entities?.length || 1,
};
}

View File

@ -132,8 +132,8 @@ export class HuiStatisticsGraphCard extends LitElement implements LovelaceCard {
return {
columns: 12,
rows: 5,
min_columns: 8,
min_rows: 4,
min_columns: 6,
min_rows: 3,
};
}