From dff88b1c98907ec8154198fc49091e23866d64f2 Mon Sep 17 00:00:00 2001 From: ulfrxdev Date: Fri, 10 Apr 2026 22:05:25 +0200 Subject: [PATCH] Implement planner recipe detail interactions and refine dock styling --- index.html | 5 +- js/ui/ingredientCard.js | 5 +- js/views/MealPlanner.js | 29 ++--- js/views/RecipeDetailV2.js | 216 +++++++++++++++++++++++++++++++------ 4 files changed, 210 insertions(+), 45 deletions(-) diff --git a/index.html b/index.html index 2b30200..8a4a956 100644 --- a/index.html +++ b/index.html @@ -408,7 +408,8 @@ letter-spacing: -0.02em; } #recipe-search-input::placeholder, - #planner-picker-search::placeholder { + #planner-picker-search::placeholder, + #pantry-search::placeholder { color: #beb8ae !important; opacity: 1; } @@ -458,7 +459,7 @@ z-index: 30; display: flex; justify-content: center; - padding: 0 0.85rem calc(1.12rem + env(safe-area-inset-bottom)); + padding: 0 0.85rem calc(1.58rem + env(safe-area-inset-bottom)); pointer-events: none; } #app-bottom-nav .bottom-dock { diff --git a/js/ui/ingredientCard.js b/js/ui/ingredientCard.js index 2254a55..719420b 100644 --- a/js/ui/ingredientCard.js +++ b/js/ui/ingredientCard.js @@ -335,6 +335,9 @@ export function createIngredientCardController({ idBase, defaultSourceNote = 'Ze if (hasProducts && !product) { const stockedCount = getPantryProducts(state.ingredientId, pantry).filter((i) => i.qty > 0).length; + const helperChip = state.allowProductSelection + ? 'Wybierz produkt' + : ''; wrap.innerHTML = `

Zapas

@@ -344,7 +347,7 @@ export function createIngredientCardController({ idBase, defaultSourceNote = 'Ze

${esc(formatQty(totalQty))} ${esc(unit)}

${stockedCount} z ${getProductsForIngredient(state.ingredientId).length} produktów ma zapas

- Wybierz produkt + ${helperChip} `; return; diff --git a/js/views/MealPlanner.js b/js/views/MealPlanner.js index 0ba8145..029893c 100644 --- a/js/views/MealPlanner.js +++ b/js/views/MealPlanner.js @@ -71,7 +71,7 @@ function syncTodayButton(mode, weekStart, monthAnchor, selected) { export function getMealPlannerHTML() { return ` -