From 4a1ebfaf4e00fef79b74a7a08f66ffeda95d8d28 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Thu, 26 Feb 2026 08:45:11 +0100 Subject: [PATCH] UI improvements: search dropdown, layout fixes, taller step fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Recipe search now shows dropdown suggestions while typing; full results load on Enter or clicking "Keresés" button - Search field moved above tag filter; active filter tags below input - Instruction textarea doubled in height (60px → 120px) on both import and edit pages Co-Authored-By: Claude Opus 4.6 --- app/templates/import.html | 2 +- app/templates/recipe_edit.html | 2 +- app/templates/recipes.html | 123 ++++++++++++++++++++++++++------- 3 files changed, 101 insertions(+), 26 deletions(-) diff --git a/app/templates/import.html b/app/templates/import.html index 8de5c92..780d27e 100644 --- a/app/templates/import.html +++ b/app/templates/import.html @@ -98,7 +98,7 @@ flex-shrink: 0; margin-top: 0.4rem; } - .instruction-row textarea { margin-bottom: 0; flex: 1; min-height: 60px; } + .instruction-row textarea { margin-bottom: 0; flex: 1; min-height: 120px; } .instruction-row button { background: var(--danger); border: none; diff --git a/app/templates/recipe_edit.html b/app/templates/recipe_edit.html index ca42347..b1bb42f 100644 --- a/app/templates/recipe_edit.html +++ b/app/templates/recipe_edit.html @@ -84,7 +84,7 @@ flex-shrink: 0; margin-top: 0.4rem; } - .instruction-row textarea { margin-bottom: 0; flex: 1; min-height: 60px; } + .instruction-row textarea { margin-bottom: 0; flex: 1; min-height: 120px; } .instruction-row button { background: var(--danger); border: none; diff --git a/app/templates/recipes.html b/app/templates/recipes.html index 0b1ccf9..b279138 100644 --- a/app/templates/recipes.html +++ b/app/templates/recipes.html @@ -30,23 +30,44 @@ } /* --- Search & filter bar --- */ - .search-bar { - display: flex; - gap: 0.75rem; - align-items: flex-start; - flex-wrap: wrap; + .search-section { margin-bottom: 1rem; } - .search-bar .search-input-wrap { - flex: 1; - min-width: 200px; + .search-row { + display: flex; + gap: 0.5rem; + align-items: center; + margin-bottom: 0.75rem; + position: relative; } - .search-bar input[type="text"] { + .search-row input[type="text"] { margin-bottom: 0; - } - .tag-filter-wrap { - min-width: 200px; flex: 1; + } + .search-dropdown { + position: absolute; + top: 100%; + left: 0; + right: 60px; + background: var(--surface2); + border: 1px solid var(--border); + border-radius: var(--radius); + max-height: 250px; + overflow-y: auto; + z-index: 110; + display: none; + } + .search-dropdown.open { display: block; } + .search-dropdown-item { + padding: 0.5rem 0.75rem; + cursor: pointer; + font-size: 0.9rem; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + .search-dropdown-item:hover { background: var(--accent-glow); } + .tag-filter-wrap { position: relative; } .tag-filter-wrap input[type="text"] { @@ -56,7 +77,7 @@ display: flex; flex-wrap: wrap; gap: 0.3rem; - margin-bottom: 0.5rem; + margin-top: 0.5rem; } .filter-chip { display: inline-flex; @@ -275,17 +296,19 @@ {% endif %} - -