From 4706430316bb08a896b6d8a379f7978fc8917e0b Mon Sep 17 00:00:00 2001 From: ulfrxdev Date: Wed, 8 Apr 2026 18:46:20 +0200 Subject: [PATCH] Redesign nutrition widgets --- js/ui/mealPlanEditor.js | 28 +++++++--------- js/views/RecipeDetailV2.js | 68 +++++++++++++++++--------------------- 2 files changed, 42 insertions(+), 54 deletions(-) diff --git a/js/ui/mealPlanEditor.js b/js/ui/mealPlanEditor.js index 22c899a..e62ce37 100644 --- a/js/ui/mealPlanEditor.js +++ b/js/ui/mealPlanEditor.js @@ -267,10 +267,8 @@ export function getMealPlanEditorHTML() {
-
-
-
-
+
+
@@ -449,18 +447,16 @@ export function setupMealPlanEditor() { const el = document.getElementById('mpe-servings-row'); if (!el) return; el.innerHTML = ` -
-

Porcje

-
-
- - ${S.servings} - -
+
+

Porcje

+
+ + ${S.servings} +
`; } diff --git a/js/views/RecipeDetailV2.js b/js/views/RecipeDetailV2.js index 6a0ca28..640cf51 100644 --- a/js/views/RecipeDetailV2.js +++ b/js/views/RecipeDetailV2.js @@ -212,47 +212,39 @@ function renderNutritionSummary(recipe) { return `
-
-
-
-

Wartości odżywcze

-
-
-
-

${total.kcal}

-

kcal

-
-
-

${total.protein}g

-

białko

-
-
-

${total.fat}g

-

tłuszcz

-
-
-

${total.carbs}g

-

węgl.

-
-
+
+

Wartości odżywcze

+
+
+
+

${total.kcal}

+

kcal

+
+
+

${total.protein}g

+

białko

+
+
+

${total.fat}g

+

tłuszcz

+
+
+

${total.carbs}g

+

węgl.

-
-
-

Porcje

-
-
- - ${currentServings} - -
-
-
+
+
+

Porcje

+
+ + ${currentServings} +
`;