diff --git a/app/main.py b/app/main.py index 152aff0..3f14166 100755 --- a/app/main.py +++ b/app/main.py @@ -400,9 +400,9 @@ async def cookbook_view( # --- Seitenzahlen & Inhaltsverzeichnis (TOC) berechnen --- # Seite 1: Cover - # TOC: 1 Seite (bis ca. 55 Rezepte passt alles wunderbar auf 1 A4-Seite in 2 Spalten), 2 Seiten erst bei sehr vielen Rezepten + # TOC: Bei einzeiligem Inhaltsverzeichnis (1 Spalte) passen ca. 26 Rezepte + Kapitelheader ideal auf 1 Seite total_display_recipes = len(all_recipes) - toc_page_count = 2 if total_display_recipes > 55 else (1 if total_display_recipes > 0 else 0) + toc_page_count = 2 if total_display_recipes > 26 else (1 if total_display_recipes > 0 else 0) current_page = 1 + toc_page_count + 1 display_chapters_data = [] diff --git a/app/static/cookbook.css b/app/static/cookbook.css index 181bf10..cedc107 100755 --- a/app/static/cookbook.css +++ b/app/static/cookbook.css @@ -1487,13 +1487,11 @@ /* --- Mobile Navigation: 3-Punkte (Kebab) Menü --- */ .desktop-nav-actions { - display: flex; - align-items: center; - gap: 10px; + display: none !important; } .mobile-nav-wrapper { - display: none; + display: block !important; position: relative; } @@ -1726,8 +1724,9 @@ } .toc-columns { - columns: 2; - column-gap: 10mm; + columns: 1; + column-count: 1; + column-gap: 0; flex: 1; } @@ -1797,7 +1796,7 @@ } .toc-rec-title { - max-width: 75%; + max-width: 84%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; diff --git a/app/templates/cookbook.html b/app/templates/cookbook.html index 275c4a7..0e53f6f 100755 --- a/app/templates/cookbook.html +++ b/app/templates/cookbook.html @@ -11,7 +11,7 @@ - +