diff --git a/src/lib/components/RecipeView.svelte b/src/lib/components/RecipeView.svelte index 03ad64c..8b5b34a 100644 --- a/src/lib/components/RecipeView.svelte +++ b/src/lib/components/RecipeView.svelte @@ -175,16 +175,13 @@ display: block; width: 100%; aspect-ratio: 16 / 10; + /* Nie mehr als 30% der Bildschirmhöhe — auf schmalen Screens würde das + Bild sonst alles Wichtige wegdrücken, auf breiten Desktops wäre es + unverhältnismäßig groß. */ + max-height: 30vh; object-fit: cover; background: #eef3ef; } - /* Mobile: verhindere, dass das Header-Bild einen unverhältnismäßig - großen Teil des Viewports füllt und alles Wichtige wegdrückt. */ - @media (max-width: 820px) { - .cover { - max-height: 30vh; - } - } .hdr-body { padding: 1rem 1rem 0.25rem; }