From 355d24312b843381dcab5bb13c97d90137977e83 Mon Sep 17 00:00:00 2001 From: torbinus Date: Wed, 11 Nov 2026 14:55:00 +0100 Subject: [PATCH] =?UTF-8?q?Automaten:=20=C3=9Cberschrift=20und=20Text=20in?= =?UTF-8?q?=20festen=20Zeilen=20statt=20zuf=C3=A4lliger=20Umbr=C3=BCche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- frontend/src/components/PageHero.astro | 14 +++++++++++--- frontend/src/pages/automaten.astro | 4 ++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/PageHero.astro b/frontend/src/components/PageHero.astro index ede880c..fec3ff5 100644 --- a/frontend/src/components/PageHero.astro +++ b/frontend/src/components/PageHero.astro @@ -1,6 +1,7 @@ --- interface Props { label: string; + /** Ein Zeilenumbruch ("\n") setzt eine feste Zeile, z. B. bei zwei Sätzen. */ title: string; lede?: string; /** Optional photo used as a full-bleed backdrop instead of the textured @@ -11,6 +12,9 @@ interface Props { const { label, title, lede, image, imageAlt = "" } = Astro.props; const dark = Boolean(image); +// Mit festen Zeilen bestimmt der Text die Breite, nicht die 16ch-Grenze — +// sonst bricht jede Zeile noch einmal mittendrin um. +const titleLines = title.split("\n"); ---