From cdf11290a058d17187abaa5d9fbc84d161bf257d Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Thu, 24 Sep 2026 13:36:41 +0200 Subject: [PATCH] Update cookcli-recipe-strategy.js --- custom_components/cookcli/www/cookcli-recipe-strategy.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/custom_components/cookcli/www/cookcli-recipe-strategy.js b/custom_components/cookcli/www/cookcli-recipe-strategy.js index 1461d67..5b7bfdc 100644 --- a/custom_components/cookcli/www/cookcli-recipe-strategy.js +++ b/custom_components/cookcli/www/cookcli-recipe-strategy.js @@ -199,11 +199,9 @@ class CookCliRecipeViewStrategy extends HTMLElement { } static _navButton(entity, targetIndex, label, icon, style = null) { - let card_mod = {}; + let card_mod = { card_mod: `style: :host { position:absolute; bottom:0; right:0; }` }; if (label == "Précédent") { - card_mod = `style: :host { position:absolute; bottom:0; left:0; }`; - } else { - card_mod = `style: :host { position:absolute; bottom:0; right:0; }`; + card_mod = { card_mod: `style: :host { position:absolute; bottom:0; left:0; }` }; } return { @@ -216,7 +214,7 @@ class CookCliRecipeViewStrategy extends HTMLElement { target: { entity_id: entity }, data: { value: targetIndex }, }, - card_mod + ...card_mod }; }