Update cookcli-recipe-strategy.js

This commit is contained in:
TheThomaas 2026-09-16 14:42:25 +02:00
parent 7749ccf32f
commit 8cf22b667a

View file

@ -249,8 +249,10 @@ class CookCliRecipeViewStrategy extends HTMLElement {
: "";
return `- ${qty ? `**${qty}** ` : ""}${item.name}`;
});
if (lines !== "") {
leftCards.push({ type: "markdown", content: lines.join("\n") });
}
}
if (config.timer_entity) {
for (const timer of timers) {
@ -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 = {