diff --git a/src/Registry.ts b/src/Registry.ts index 052d8fa..6552eeb 100644 --- a/src/Registry.ts +++ b/src/Registry.ts @@ -265,7 +265,7 @@ class Registry { * Each horizontal stack contains a specified number of cards. * * @param {LovelaceCardConfig[]} cardConfigurations - Array of card configurations to be stacked. - * @param {number} columnCount - Number of cards per horizontal stack. + * @param {number} columnCount - Maximal number of cards per horizontal stack. */ static stackHorizontal(cardConfigurations: LovelaceCardConfig[], columnCount: number): StackCardConfig[] { const stackedCardConfigurations: StackCardConfig[] = []; diff --git a/src/views/HomeView.ts b/src/views/HomeView.ts index fbad6b2..64f7c92 100644 --- a/src/views/HomeView.ts +++ b/src/views/HomeView.ts @@ -207,10 +207,9 @@ class HomeView extends AbstractView { .map((person) => new PersonCard(person).getCard()), ); - // FIXME: The columns are too narrow when having many persons. return { type: 'vertical-stack', - cards: Registry.stackHorizontal(cardConfigurations, 2), + cards: Registry.stackHorizontal(cardConfigurations, 8), }; }