From b88a8edd35aa3a8749065bbae02ba7eb5a56ba0d Mon Sep 17 00:00:00 2001 From: Marco Date: Fri, 31 Jul 2026 22:50:48 +0000 Subject: [PATCH] Fix legal-page autolink color, add Blog breadcrumb, revert breadcrumb color MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - RichText.tsx: Lexical's auto-detected "autolink" nodes (a typed-out email/URL, as opposed to an editor-inserted link) fell through to Payload's unstyled default converter — only "link" was overridden. AGB's Vertragspartner email rendered as plain black text because of this. Both node types now get the same text-brand/hover:underline treatment. - Breadcrumb color revert: the breadcrumb Startseite links across the 4 legal pages/shop should stay their original hover:text-brand treatment — only the actual content/contact links needed the always-brand-colored style, not page-level breadcrumbs. - /blog was the one page missing both a breadcrumb and the text-h-feature heading size every other section page (/shop, legal pages) already uses — added to match. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_018unaXmuzVA8ct1b6WoyP1U --- app/agb/page.tsx | 2 +- app/blog/page.tsx | 12 +++++++++++- app/components/RichText.tsx | 10 ++++++++++ app/datenschutz/page.tsx | 2 +- app/impressum/page.tsx | 2 +- app/widerruf/page.tsx | 2 +- 6 files changed, 25 insertions(+), 5 deletions(-) diff --git a/app/agb/page.tsx b/app/agb/page.tsx index b4972c2..294d8b4 100644 --- a/app/agb/page.tsx +++ b/app/agb/page.tsx @@ -27,7 +27,7 @@ export default async function AgbPage() {

- Startseite + Startseite AGB

diff --git a/app/blog/page.tsx b/app/blog/page.tsx index a8eea35..ffe364e 100644 --- a/app/blog/page.tsx +++ b/app/blog/page.tsx @@ -66,8 +66,18 @@ export default async function BlogOverviewPage({ hero-fade-left/hero-fade-bottom overlays (node 4577:330). */}
+ {/* Breadcrumb + text-h-feature heading — same treatment as + /shop's ShopHeader.tsx and every legal page, this hero was + the one page missing both (its own bespoke photo-bleed + layout predates that convention being established + elsewhere). */} +

+ Startseite + + Blog +

Blog diff --git a/app/components/RichText.tsx b/app/components/RichText.tsx index cf530d4..aa4daf7 100644 --- a/app/components/RichText.tsx +++ b/app/components/RichText.tsx @@ -160,6 +160,16 @@ function buildConverters(quoteLabel: string): JSXConvertersFunction { {nodesToJSX({ nodes: node.children })} ), + // Lexical auto-detects a typed-out URL/email as its own "autolink" node, + // distinct from an editor-inserted "link" node — falls through to + // Payload's unstyled default converter without this, which is why the + // Impressum/AGB's typed-in-place mailto addresses rendered as plain + // black text instead of matching every editor-inserted link. + autolink: ({ node, nodesToJSX }) => ( + + {nodesToJSX({ nodes: node.children })} + + ), // Lexical's native blockquote feature — used by every post written // before Blocks existed. Kept working exactly as before (own comment on // Posts.ts's `content` field editor config on why this stays enabled diff --git a/app/datenschutz/page.tsx b/app/datenschutz/page.tsx index 93810dc..8864636 100644 --- a/app/datenschutz/page.tsx +++ b/app/datenschutz/page.tsx @@ -26,7 +26,7 @@ export default async function DatenschutzPage() {

- Startseite + Startseite Datenschutz

diff --git a/app/impressum/page.tsx b/app/impressum/page.tsx index c30a345..f505e75 100644 --- a/app/impressum/page.tsx +++ b/app/impressum/page.tsx @@ -29,7 +29,7 @@ export default async function ImpressumPage() {

- Startseite + Startseite Impressum

diff --git a/app/widerruf/page.tsx b/app/widerruf/page.tsx index e2f9d8b..ff1e9f1 100644 --- a/app/widerruf/page.tsx +++ b/app/widerruf/page.tsx @@ -27,7 +27,7 @@ export default async function WiderrufPage() {

- Startseite + Startseite Widerruf