Update cookcli-recipe-strategy.js
This commit is contained in:
parent
7749ccf32f
commit
8cf22b667a
6
dist/cookcli-recipe-strategy.js
vendored
6
dist/cookcli-recipe-strategy.js
vendored
|
|
@ -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 = {
|
||||
|
|
|
|||
Reference in a new issue