From 808ac667caa27b5b6ebcdb17f5175ae6450fe215 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 19 Sep 2026 14:01:50 +0200 Subject: [PATCH] Update cookcli-recipe-strategy.js --- dist/cookcli-recipe-strategy.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dist/cookcli-recipe-strategy.js b/dist/cookcli-recipe-strategy.js index 497b3ba..6b32535 100644 --- a/dist/cookcli-recipe-strategy.js +++ b/dist/cookcli-recipe-strategy.js @@ -221,8 +221,10 @@ class CookCliRecipeViewStrategy extends HTMLElement { const cards = [{ type: "markdown", content }]; + const rightCards = []; + if (recipe.todo_entity_id) { - cards.push({ + rightCards.push({ type: "todo-list", entity: recipe.todo_entity_id, title: "Ingrédients", @@ -237,10 +239,12 @@ class CookCliRecipeViewStrategy extends HTMLElement { } if (config.step_entity && stepCount > 0) { - cards.push(this._navButton(config.step_entity, 1, "Commencer", "mdi:play")); + rightCards.push(this._navButton(config.step_entity, 1, "Commencer", "mdi:play")); } - return { name: "Résumé", icon: "mdi:book-open-variant", card: { type: "vertical-stack", cards } }; + cards.push({ type: "vertical-stack", cards: rightCards }); + + return { name: "Résumé", icon: "mdi:book-open-variant", card: { type: "horizontal-stack", cards } }; } static _stepTab(section, step, tabIndex, isLast, config) {