From 8cf22b667ac6482efa59ec2143a062eeb54101bb Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Wed, 16 Sep 2026 14:42:25 +0200 Subject: [PATCH] Update cookcli-recipe-strategy.js --- dist/cookcli-recipe-strategy.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/cookcli-recipe-strategy.js b/dist/cookcli-recipe-strategy.js index fc7b458..38b9e8f 100644 --- a/dist/cookcli-recipe-strategy.js +++ b/dist/cookcli-recipe-strategy.js @@ -249,7 +249,9 @@ class CookCliRecipeViewStrategy extends HTMLElement { : ""; return `- ${qty ? `**${qty}** ` : ""}${item.name}`; }); - leftCards.push({ type: "markdown", content: lines.join("\n") }); + if (lines !== "") { + leftCards.push({ type: "markdown", content: lines.join("\n") }); + } } if (config.timer_entity) { @@ -274,7 +276,7 @@ class CookCliRecipeViewStrategy extends HTMLElement { if (!leftCards.length) { // horizontal-stack veut deux cartes ; une carte vide maintient le ratio. - leftCards.push({ type: "markdown", content: "" }); + leftCards.push({ type: "markdown", content: " " }); } const columns = {