From 14c2b60538d04ef4c1249e8b79cf1f74e2d9004d Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 20 Aug 2024 11:09:57 +0200 Subject: [PATCH] Rename variables --- src/panels/lovelace/views/hui-sections-view.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/panels/lovelace/views/hui-sections-view.ts b/src/panels/lovelace/views/hui-sections-view.ts index 243f99a25d..ef22550c8b 100644 --- a/src/panels/lovelace/views/hui-sections-view.ts +++ b/src/panels/lovelace/views/hui-sections-view.ts @@ -209,8 +209,10 @@ export class SectionsView extends LitElement implements LovelaceViewElement { (section) => this._getSectionKey(section), (section, idx) => { const sectionConfig = this._config?.sections?.[idx]; - const columnSpan = Math.min(sectionConfig?.column_span || 1); - + const columnSpan = Math.min( + sectionConfig?.column_span || 1, + maxColumnCount + ); const rowSpan = sectionConfig?.row_span || 1; (section as any).itemPath = [idx];