From 4d7a1a12aedbebb134f18ce5b0fcf7adba05275b Mon Sep 17 00:00:00 2001 From: ulfrxdev Date: Thu, 16 Apr 2026 00:17:41 +0200 Subject: [PATCH] =?UTF-8?q?Reorganizacja=20g=C3=B3rnych=20paneli=20i=20uje?= =?UTF-8?q?dnolicenie=20stylu=20filtr=C3=B3w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Kalendarz: data między strzałkami zamiast napisu "Dziś", nawigacja po prawej, mniejszy komponent dopasowany do wysokości dnia - MealPlanner/Pantry/RecipeList: spójne nagłówki z tytułem po lewej i kontrolkami po prawej - RecipeList: nowy top bar z przyciskami filtrów i wyszukiwania wzorowany na spiżarni - Filter popup: ujednolicony styl z popoverem spiżarni (ciemniejsze tło, jaśniejsze obramowanie, spójne chipy) - Usunięcie przyciemnienia otoczenia przy otwieraniu filtrów - Badge z liczbą aktywnych filtrów na przycisku, zachowujący stan po zamknięciu popupu - Usunięcie ikon kalendarza z pigułek w spiżarni Made-with: Cursor --- index.html | 47 ++++-- js/ui/mealCalendar.js | 102 ++++++++----- js/ui/mealPlanEditor.js | 12 +- js/views/Filter.js | 100 ++++++++----- js/views/MealPlanner.js | 25 +--- js/views/Pantry.js | 317 ++++++++++++++++++++++++++++++++++------ js/views/RecipeList.js | 120 +++++++++++++-- 7 files changed, 553 insertions(+), 170 deletions(-) diff --git a/index.html b/index.html index 71bc459..49309bc 100644 --- a/index.html +++ b/index.html @@ -254,9 +254,7 @@ } #main-view > div:first-child, #planner-view > div:first-child, - #pantry-view > div:first-child, - #filter-view > div:first-child, - #filter-view > div:last-child { + #pantry-view > div:first-child { background: rgb(var(--app-bg-rgb)) !important; backdrop-filter: none; } @@ -345,7 +343,38 @@ background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(var(--app-bg-rgb), 0.5) 92%); pointer-events: none; } - #recipe-search-shell, + #recipe-topbar #recipe-search-shell { + min-height: 0; + width: 100%; + margin-inline: 0; + isolation: auto; + } + #recipe-topbar #recipe-search-shell::after { + display: none; + } + #recipe-topbar #recipe-search-shell, + #recipe-topbar #recipe-search-shell:focus-within { + background: #23221e !important; + border: 1px solid #787876 !important; + backdrop-filter: none; + -webkit-backdrop-filter: none; + } + #recipe-topbar #recipe-search-input { + appearance: none; + -webkit-appearance: none; + background: transparent !important; + border: none !important; + box-shadow: none !important; + color: #ddd6ca !important; + caret-color: #ddd6ca; + } + #recipe-topbar #recipe-search-input::placeholder { + color: #9b978f !important; + opacity: 1; + } + #recipe-topbar #recipe-filter-btn { + border-radius: 999px; + } #planner-picker-search-shell { min-height: 3rem; width: min(calc(100% - 0.5rem), 22.4rem); @@ -366,7 +395,6 @@ backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); } - #recipe-search-shell::after, #planner-picker-search-shell::after { content: ''; position: absolute; @@ -381,7 +409,6 @@ z-index: -1; pointer-events: none; } - #recipe-search-shell:focus-within, #planner-picker-search-shell:focus-within { background: #393937 !important; border: 1px solid #4a4b47 !important; @@ -393,7 +420,6 @@ inset 0 2px 7px rgba(0, 0, 0, 0.18), inset 0 -1px 2px rgba(255, 255, 255, 0.03) !important; } - #recipe-search-input, #planner-picker-search { appearance: none; -webkit-appearance: none; @@ -407,20 +433,17 @@ font-weight: 400; letter-spacing: -0.02em; } - #recipe-search-input::placeholder, #planner-picker-search::placeholder, #pantry-search::placeholder { color: #beb8ae !important; opacity: 1; } - #recipe-filter-btn, #planner-picker-filter-btn { border-radius: 999px; background: transparent !important; border: none !important; box-shadow: none !important; } - #recipe-filter-btn:hover, #planner-picker-filter-btn:hover { background: rgba(255, 255, 255, 0.03) !important; } @@ -440,7 +463,7 @@ backdrop-filter: blur(18px); } #filter-view { - background: rgb(var(--app-bg-rgb)) !important; + background: transparent !important; backdrop-filter: none; } #planner-picker-backdrop, @@ -601,7 +624,7 @@