Update cookcli-recipe-strategy.js
This commit is contained in:
parent
7749ccf32f
commit
8cf22b667a
4
dist/cookcli-recipe-strategy.js
vendored
4
dist/cookcli-recipe-strategy.js
vendored
|
|
@ -249,8 +249,10 @@ class CookCliRecipeViewStrategy extends HTMLElement {
|
||||||
: "";
|
: "";
|
||||||
return `- ${qty ? `**${qty}** ` : ""}${item.name}`;
|
return `- ${qty ? `**${qty}** ` : ""}${item.name}`;
|
||||||
});
|
});
|
||||||
|
if (lines !== "") {
|
||||||
leftCards.push({ type: "markdown", content: lines.join("\n") });
|
leftCards.push({ type: "markdown", content: lines.join("\n") });
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (config.timer_entity) {
|
if (config.timer_entity) {
|
||||||
for (const timer of timers) {
|
for (const timer of timers) {
|
||||||
|
|
@ -274,7 +276,7 @@ class CookCliRecipeViewStrategy extends HTMLElement {
|
||||||
|
|
||||||
if (!leftCards.length) {
|
if (!leftCards.length) {
|
||||||
// horizontal-stack veut deux cartes ; une carte vide maintient le ratio.
|
// horizontal-stack veut deux cartes ; une carte vide maintient le ratio.
|
||||||
leftCards.push({ type: "markdown", content: "" });
|
leftCards.push({ type: "markdown", content: " " });
|
||||||
}
|
}
|
||||||
|
|
||||||
const columns = {
|
const columns = {
|
||||||
|
|
|
||||||
Reference in a new issue