From b06d43b8833907d38143195bb045651ee6886633 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 19 Sep 2026 19:34:07 +0200 Subject: [PATCH] Update cookcli-recipe-strategy.js --- .../cookcli/www/cookcli-recipe-strategy.js | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/custom_components/cookcli/www/cookcli-recipe-strategy.js b/custom_components/cookcli/www/cookcli-recipe-strategy.js index 12d51b8..94ad661 100644 --- a/custom_components/cookcli/www/cookcli-recipe-strategy.js +++ b/custom_components/cookcli/www/cookcli-recipe-strategy.js @@ -226,16 +226,17 @@ class CookCliRecipeViewStrategy extends HTMLElement { const cards = [{ type: "markdown", content, - card_mod: ` - style: | - img { - width: 100%; - aspect-ratio: 16 / 10; - object-fit: cover; - border-radius: 12px; - margin-bottom: 8px; - } - ` + card_mod:` + style: + ha-markdown: + $: | + img { + width: 100%; + aspect-ratio: 16 / 10; + object-fit: cover; + border-radius: 12px; + margin-bottom: 8px; + }` }]; const rightCards = [];