Gib dem Fließtext den Editor der Dokumente und lass Überschrift und Fließtext die volle Breite nutzen
CI Feature / test (push) Canceled after 0s
Deploy Test / test (push) Successful in 6m13s
Deploy Test / deploy (push) Successful in 41s

Fließtext Version 2: formatierter Text (bereinigtes HTML) im gemeinsamen Editor mit Zwischenüberschriften, fett, kursiv, Links, Listen, Zitat und Tabellen. Links auf eigene Seiten (/seite, #anker) bleiben im CMS erhalten (FormattedText mit internalLinks), in Verwaltung und PDF weiterhin nicht. Version 1 (Klartext) wird beim Lesen zu Absätzen. Tabellen stehen in einem scrollbaren, tastaturerreichbaren Rahmen. Das Maß für gespeichertes HTML steigt von 20000 auf 100000 Zeichen.

Neue Einstellung "Breite des Texts" für Überschrift und Fließtext: Vorgabe volle Breite des Platzes, wahlweise Lesebreite wie bisher (Überschrift 22 Zeichen, Text 70 Zeichen). Bestehende Seiten nutzen dadurch ohne Eingriff die ganze Breite.

Der Test zu "Altes Eingabeformat" erwartet bewusst das gespeicherte HTML der Version 2.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-26 11:35:25 +01:00
1 parent 5233b96c42
commit 79b58903ac
17 files changed
+424 -37

No files matched your search

+107 -2
View File
@@ -39,9 +39,28 @@ .widget .prose > :last-child {
margin-bottom: 0;
}
/*
* Überschrift und Fließtext nutzen die ganze Breite des Platzes (Einstellung „Breite des Texts“, Vorgabe „Volle Breite“).
* Die Lesebreite („reading“) begrenzt Zeilen wie bisher: Überschrift 22 Zeichen, Einleitung und Fließtext --measure.
*/
.widget-heading .lede {
max-width: none;
}
.widget-heading .lede.lf-reading {
max-width: var(--measure);
}
.widget-prose .prose {
max-width: none;
}
.widget-prose .prose.prose--reading {
max-width: var(--measure);
}
/* Überschrift */
.widget-heading h1,
.widget-heading h2 {
.widget-heading :is(h1, h2).lf-reading {
max-width: 22ch;
}
@@ -50,6 +69,92 @@ .widget-prose .prose p {
margin: 0 0 var(--space-4);
}
/*
* Fließtext aus dem Editor (ADR-50): Zwischenüberschriften H3 bis H6, Zitat und Tabellen. Nur Bedeutungswerte, damit der
* Text auch auf dunklen und Akzentflächen lesbar bleibt.
*/
.widget-prose .prose h3,
.widget-prose .prose h4,
.widget-prose .prose h5,
.widget-prose .prose h6 {
margin: var(--space-5) 0 var(--space-2);
font-family: var(--font-display);
color: var(--color-heading);
line-height: var(--leading-heading);
letter-spacing: -0.01em;
font-weight: 700;
overflow-wrap: break-word;
}
.widget-prose .prose h3 { font-size: var(--text-h3); }
.widget-prose .prose h4 { font-size: calc(var(--text-body) * 1.25); }
.widget-prose .prose h5 { font-size: calc(var(--text-body) * 1.1); }
.widget-prose .prose h6 { font-size: var(--text-body); }
.widget-prose .prose > :first-child { margin-top: 0; }
.widget-prose .prose blockquote {
margin: 0 0 var(--space-4);
padding: 0 0 0 var(--space-4);
border-inline-start: 4px solid var(--color-border-strong);
color: var(--color-text-muted);
}
.widget-prose .prose blockquote > :last-child { margin-bottom: 0; }
/* Der Grundstil setzt Listen und Links zurück; im Fließtext sollen sie als solche erkennbar sein. */
.widget-prose .prose ul { list-style: disc; }
.widget-prose .prose ol { list-style: decimal; }
.widget-prose .prose li { margin-block-end: var(--space-1); }
.widget-prose .prose li > p { margin: 0; }
.widget-prose .prose li::marker { color: var(--color-text-muted); }
.widget-prose .prose a {
color: var(--color-link);
text-decoration: underline;
text-underline-offset: 0.2em;
overflow-wrap: anywhere;
}
.widget-prose .prose a:hover { color: var(--color-link-hover, var(--color-link)); }
/* Tabelle: Der Rahmen scrollt bei wenig Platz waagerecht und ist mit der Tastatur erreichbar. */
.prose-table {
max-inline-size: 100%;
margin: 0 0 var(--space-4);
overflow-x: auto;
}
.prose-table:focus-visible {
outline: 3px solid var(--color-focus);
outline-offset: 3px;
}
.prose-table table {
inline-size: 100%;
min-inline-size: 24rem;
border-collapse: collapse;
}
.prose-table th,
.prose-table td {
padding: 0.5rem 0.75rem;
border: 1px solid var(--color-border);
text-align: start;
vertical-align: top;
}
.prose-table th {
background: var(--color-surface-subtle);
color: var(--color-heading);
font-weight: 700;
}
.widget-prose .prose .prose-table p { margin: 0; }
.widget-prose .prose .prose-table p + p,
.widget-prose .prose .prose-table :is(ul, ol) { margin-top: 0.4em; }
.widget-prose .prose .prose-table :is(ul, ol) { margin-bottom: 0; }
/* ------------------------------------------------------------------------------------------------
* Redaktionelle Karten. Varianten: Raster (cards-grid), kompakte Liste (cards-compact),
* erste Karte hervorgehoben (cards-featured). Die ganze Karte ist über den Titellink klickbar.
+4 -3
View File
@@ -3,15 +3,16 @@
$side = \App\Domain\Cms\Widgets\Support\HeadingAccent::sideSize($settings);
$align = \App\Domain\Cms\Widgets\Support\HeadingAccent::align($settings);
$inline = $side !== null ? [] : $settings;
$reading = \App\Domain\Cms\Widgets\Support\HeadingAccent::textWidth($settings) === 'reading' ? ' class="lf-reading"' : '';
@endphp
@if ($side !== null)<div class="lf-lead lf-lead--{{ $side }} lf-lead--{{ $align }}"><x-brand.symbol :name="$symbol" class="lf-lead__symbol" /><div class="lf-lead__body">@endif
@if (! empty($first))
<h1><x-brand.heading-symbol :settings="$inline" />{{ $data['heading'] ?? '' }}</h1>
<h1{!! $reading !!}><x-brand.heading-symbol :settings="$inline" />{{ $data['heading'] ?? '' }}</h1>
@else
<h2><x-brand.heading-symbol :settings="$inline" />{{ $data['heading'] ?? '' }}</h2>
<h2{!! $reading !!}><x-brand.heading-symbol :settings="$inline" />{{ $data['heading'] ?? '' }}</h2>
@endif
<x-brand.heading-brush :settings="$settings" />
@if (filled($data['intro'] ?? null))
<p class="lede">{{ $data['intro'] }}</p>
<p class="lede{{ $reading !== '' ? ' lf-reading' : '' }}">{{ $data['intro'] }}</p>
@endif
@if ($side !== null)</div></div>@endif
+1 -5
View File
@@ -1,10 +1,6 @@
@if (filled($data['body'] ?? null))
@php($lead = \App\Domain\Cms\Widgets\Support\HeadingAccent::lead($settings, 'medium'))
@if ($lead['side'] !== null)<div class="lf-lead lf-lead--{{ $lead['side'] }} lf-lead--{{ $lead['align'] }}"><x-brand.symbol :name="$lead['symbol']" class="lf-lead__symbol" /><div class="lf-lead__body">@endif
<div class="prose">
@foreach (preg_split("/\n\s*\n/", trim($data['body'])) as $paragraph)
<p>{{ $paragraph }}</p>
@endforeach
</div>
<div @class(['prose', 'prose--reading' => \App\Domain\Cms\Widgets\Support\HeadingAccent::textWidth($settings) === 'reading'])>{!! $html !!}</div>
@if ($lead['side'] !== null)</div></div>@endif
@endif