Update cookcli-recipe-strategy.js

This commit is contained in:
TheThomaas 2026-09-16 14:39:00 +02:00
parent 6428797de7
commit b5e39bb43a

View file

@ -171,8 +171,7 @@ class CookCliRecipeViewStrategy extends HTMLElement {
} }
return { return {
// title: recipe.title || "Recette", title: recipe.title || "Recette",
title: "Recette",
panel: true, panel: true,
cards: [tabdeckCard], cards: [tabdeckCard],
}; };
@ -208,7 +207,7 @@ class CookCliRecipeViewStrategy extends HTMLElement {
static _summaryTab(recipe, config, stepCount) { static _summaryTab(recipe, config, stepCount) {
let content = ""; let content = "";
if (recipe.image_url) content += `![](${recipe.image_url})\n\n`; if (recipe.image_url) content += `![image de la recette](${recipe.image_url})\n\n`;
content += `## ${recipe.title || ""}\n`; content += `## ${recipe.title || ""}\n`;
if (recipe.cookware && recipe.cookware.length) { if (recipe.cookware && recipe.cookware.length) {
content += `\n**Ustensiles** : ${recipe.cookware.map((c) => c.name).join(", ")}\n`; content += `\n**Ustensiles** : ${recipe.cookware.map((c) => c.name).join(", ")}\n`;