Make cover full bleed, TOC single column readable, and unify header with clean kebab menu on desktop
This commit is contained in:
+2
-2
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user