Compare commits

..
Author SHA1 Message Date
Lars 2eab8355f1 Merge pull request 'Widges' (#16) from develop into main
Deploy Production / test (push) In progress
Reviewed-on: #16
2026-11-26 12:09:23 +01:00
LarsandClaude Sonnet 5.5 28bd5590bc Lass auf dem Tablet eine ganz leere Rasterzeile entfallen
CI Feature / test (push) Canceled after 0s
Deploy Test / test (push) Successful in 6m33s
Deploy Test / deploy (push) Successful in 42s
Bei vier gleich breiten Plätzen steht das Raster auf dem Tablet als 2 x 2. War die erste Zeile komplett leer, blieb ihr Zeilenabstand als Lücke über dem Inhalt stehen. Eine Zeile, in der alle Plätze leer sind, wird dort jetzt ausgeblendet; die Plätze danach rücken genau eine Zeile nach oben und bleiben in ihrer Spalte. Gefunden durch einen Vergleich aller Raster, Abschnittsbreiten, Abstände und Fensterbreiten (2400 Prüfungen).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 12:00:35 +01:00
Lars bf6eac2de9 Merge pull request 'Shopsystem + Widges' (#15) from develop into main
Deploy Production / test (push) Successful in 6m18s
Deploy Production / deploy (push) Successful in 42s
Reviewed-on: #15
2026-11-26 11:16:51 +01:00
Lars 8991efd19a Merge pull request 'Shop Fixes' (#14) from develop into main
Deploy Production / test (push) Successful in 3m26s
Deploy Production / deploy (push) Successful in 33s
Reviewed-on: #14
2026-11-26 05:50:58 +01:00
Lars 46878552db Merge pull request 'Symbol Picker und erweiterte Symbolauswahl' (#13) from develop into main
Deploy Production / test (push) Successful in 5m56s
Deploy Production / deploy (push) Successful in 1m1s
Reviewed-on: #13
2026-11-24 22:16:26 +01:00
Lars 903e8093a2 Merge pull request 'Link Problem im PDF behoben' (#12) from develop into main
Deploy Production / test (push) Successful in 4m49s
Deploy Production / deploy (push) Successful in 39s
Reviewed-on: #12
2026-11-24 21:36:07 +01:00
Lars c442ff7bc9 Merge pull request 'Pdf Vorlagen Manager' (#11) from develop into main
Deploy Production / test (push) Successful in 3m12s
Deploy Production / deploy (push) Successful in 40s
Reviewed-on: #11
2026-11-24 17:04:12 +01:00
Lars c14cdfd0ec Merge pull request 'Dokumente' (#10) from develop into main
Deploy Production / test (push) Successful in 3m10s
Deploy Production / deploy (push) Successful in 32s
Reviewed-on: #10
2026-11-24 13:50:28 +01:00
Lars 7145cf7b8d Merge pull request 'Symbole, neue Widgets, neue Medienfilter' (#9) from develop into main
Deploy Production / test (push) Successful in 2m50s
Deploy Production / deploy (push) Successful in 26s
Reviewed-on: #9
2026-11-24 10:09:22 +01:00
Lars 0e45dae0af Merge pull request 'Minigrafiken im CMS' (#8) from develop into main
Deploy Production / test (push) Successful in 4m27s
Deploy Production / deploy (push) Successful in 41s
Reviewed-on: #8
2026-11-23 21:53:14 +01:00
Lars f782c7d1a1 Merge pull request 'Anbindung Shinkan, Übungsverwaltung' (#7) from develop into main
Deploy Production / test (push) Canceled after 1m34s
Deploy Production / deploy (push) Canceled after 0s
Reviewed-on: #7
2026-11-23 19:10:34 +01:00
Lars e9cb922d04 Merge pull request 'Mitgleiderbereich' (#6) from develop into main
Deploy Production / test (push) Successful in 2m48s
Deploy Production / deploy (push) Successful in 33s
Reviewed-on: #6
2026-11-22 19:16:52 +01:00
Lars 43a7778a33 Merge pull request 'Pixel-System' (#5) from develop into main
Deploy Production / test (push) Successful in 1m59s
Deploy Production / deploy (push) Successful in 28s
Reviewed-on: #5
2026-11-22 16:05:59 +01:00
Lars f8a87827e9 Merge pull request 'http Umleitung auf https in der nginx Konfiguration' (#4) from develop into main
Deploy Production / test (push) Successful in 2m34s
Deploy Production / deploy (push) Successful in 26s
Reviewed-on: #4
2026-11-22 15:20:33 +01:00
Lars 4248ecffb8 Merge pull request 'MVP 1.2 (inkl. Shop)' (#3) from develop into main
Deploy Production / test (push) Successful in 3m1s
Deploy Production / deploy (push) Successful in 50s
Reviewed-on: #3
2026-11-22 11:43:00 +01:00
Lars 759b3e1c02 Merge pull request 'Lasse nginx den App-Container zur Laufzeit auflösen' (#2) from develop into main
Deploy Production / test (push) Successful in 1m8s
Deploy Production / deploy (push) Successful in 24s
Reviewed-on: #2
2026-11-21 07:14:12 +01:00
Lars 57b2131632 Merge pull request 'MVP 1.0 (ohne Shop)' (#1) from develop into main
Deploy Production / test (push) Successful in 1m18s
Deploy Production / deploy (push) Failing after 3m7s
Reviewed-on: #1
2026-11-20 21:58:41 +01:00
5 changed files with 62 additions and 5 deletions

No files matched your search

+15 -4
View File
@@ -116,14 +116,25 @@ private function renderSection(array $section, array $cells, int $index, RenderC
.' style="object-position: '.e(SectionStyle::FOCUS_POSITIONS[$style['focus']]).'">';
}
// Auf dem Tablet stehen gleich breite Plätze nebeneinander; nur dort behalten leere Plätze ihre Stelle.
$tabletColumns = $columns['md'] !== 'minmax(0, 1fr)' ? ' section-grid-tablet-columns' : '';
// Auf dem Tablet stehen gleich breite Plätze nebeneinander (zwei oder drei je Zeile); nur dort behalten leere Plätze
// ihre Stelle. Eine Zeile, in der alle Plätze leer sind, entfällt auf dem Tablet ganz (sonst bliebe ihr Abstand stehen).
$perRow = preg_match('/^repeat\((\d+),/', $columns['md'], $match) === 1 ? (int) $match[1] : 1;
$tabletColumns = $perRow > 1 ? ' section-grid-tablet-columns' : '';
$emptyRows = [];
if ($perRow > 1) {
foreach (array_chunk(array_keys($cells), $perRow) as $row) {
if (array_filter($row, fn (int $position): bool => $cells[$position]['html'] !== '') === []) {
$emptyRows = array_merge($emptyRows, $row);
}
}
}
$html .= '<div class="page-section-inner"><div class="section-grid'.$tabletColumns.'" data-slots="'.count($cells).'"'
.' style="--section-cols-lg: '.e($columns['lg']).'; --section-cols-md: '.e($columns['md']).'">';
foreach ($cells as $cell) {
foreach ($cells as $position => $cell) {
$html .= $cell['html'] === ''
? '<div class="section-slot section-slot-empty" data-units="'.$cell['units'].'" aria-hidden="true"></div>'
? '<div class="section-slot section-slot-empty'.(in_array($position, $emptyRows, true) ? ' section-slot-empty-row' : '').'" data-units="'.$cell['units'].'" aria-hidden="true"></div>'
: '<div class="section-slot" data-units="'.$cell['units'].'">'.$cell['html'].'</div>';
}
+1 -1
View File
@@ -261,7 +261,7 @@ ## 11. Abschnitte und Plätze
- Die Einheiten werden als Spaltenverhältnis (`fr`) umgesetzt, nicht als zweites CSS-Grundraster. Der Umbruch richtet sich nach der Breite des Abschnitts (Container-Abfrage `section`); ein schmaler Abschnitt stapelt deshalb früher.
- Gestapelt wird immer in Platzreihenfolge; Lese- und Fokusreihenfolge bleiben gleich (keine visuelle Umordnung).
- **Leere Plätze** behalten öffentlich ihre Stelle und Breite: Bei 1 + 3 mit leerem ersten Platz steht das Widget im breiten Platz rechts; ein leerer letzter Platz lässt die Spalte rechts frei. Dafür rendert `SectionRenderer` für jeden Platz des Rasters eine Zelle (`div.section-slot`, leer: `section-slot-empty`, `aria-hidden`) und berechnet die Spaltenvorlage aus allen Einheiten des Rasters. Wo die Plätze untereinander stehen (Smartphone, schmaler Abschnitt, Tablet bei ungleichen Rastern), bleibt der leere Platz verborgen (`display: none`) und erzeugt keine Lücke; auf dem Tablet bei gleich breiten Plätzen (`section-grid-tablet-columns`) und ab 60 rem Abschnittsbreite bleibt er stehen. Wer ein Widget über die ganze Breite will, wählt das Raster „Volle Breite“. Ein Widget, das nichts darstellt, zählt wie ein leerer Platz. Ein Abschnitt ohne darstellbares Widget entfällt samt Fläche und Trenner.
- **Leere Plätze** behalten öffentlich ihre Stelle und Breite: Bei 1 + 3 mit leerem ersten Platz steht das Widget im breiten Platz rechts; ein leerer letzter Platz lässt die Spalte rechts frei. Dafür rendert `SectionRenderer` für jeden Platz des Rasters eine Zelle (`div.section-slot`, leer: `section-slot-empty`, `aria-hidden`) und berechnet die Spaltenvorlage aus allen Einheiten des Rasters. Wo die Plätze untereinander stehen (Smartphone, schmaler Abschnitt, Tablet bei ungleichen Rastern), bleibt der leere Platz verborgen (`display: none`) und erzeugt keine Lücke; auf dem Tablet bei gleich breiten Plätzen (`section-grid-tablet-columns`) und ab 60 rem Abschnittsbreite bleibt er stehen. Auf dem Tablet entfällt eine Zeile, in der alle Plätze leer sind (`section-slot-empty-row`, zum Beispiel die obere Hälfte eines 2 × 2-Rasters), damit ihr Abstand keine Lücke lässt. Wer ein Widget über die ganze Breite will, wählt das Raster „Volle Breite“. Ein Widget, das nichts darstellt, zählt wie ein leerer Platz. Ein Abschnitt ohne darstellbares Widget entfällt samt Fläche und Trenner.
- **Gestaltung**: nur Aufzählungswerte (`SectionStyle`), abgebildet auf Tokens. Freie Werte (Farbcodes, CSS, unbekannte Schlüssel) werden abgewiesen.
- Hintergrund: Standard, helle Markenfläche, dunkle Markenfläche, Markenakzent, Hintergrundbild. Jede Fläche setzt die Bedeutungs-Tokens neu (`scope-dark`, `scope-accent`, `scope-light`).
- Breite: schmal (44 rem), Standard (Inhaltsbreite, Basiswert 1312 px), breit (1,17-fach), volle Breite. Der Hintergrund reicht immer über die ganze Bildschirmbreite.
@@ -14,3 +14,13 @@ # Abnahme: Leere Plätze eines Abschnitts behalten ihre Stelle (2026-11-26)
| Breit | Tablet |
|---|---|
| ![Breit](leere-plaetze/breit.png) | ![Tablet](leere-plaetze/tablet.png) |
## Nachprüfung über alle Raster (2026-11-26)
Geprüft wurde, ob das vorhandene Platzsystem unverändert gilt: alle 8 Raster (`SectionLayouts`) × alle 4 Abschnittsbreiten (Lesebereich, Standard, Breit, Vollbreite) × 3 Plätze-Abstände (kein, normal, großzügig) × 10 Fensterbreiten (360 bis 1920 px). Je Raster wurde der Abschnitt einmal ganz belegt und dann mit genau einem belegten Platz gerendert (2400 Vergleiche in Chromium).
- Der belegte Platz hat dieselbe Spalte (Lage und Breite, Toleranz 1 px) wie im ganz belegten Abschnitt, auch bei gestapelten Rastern.
- Die Spaltenzahl ist gleich (das Raster reagiert gleich responsiv).
- Gestapelt entsteht keine Lücke: Das Raster ist so hoch wie das eine Widget.
- Nebeneinander steht das Widget oben im Raster, und nichts ragt über den Abschnitt hinaus.
- Gefunden und behoben: Bei vier gleich breiten Plätzen steht das Raster auf dem Tablet als 2 × 2. War die ganze erste Zeile leer, blieb ihr Zeilenabstand als Lücke stehen. Eine Zeile, in der alle Plätze leer sind, entfällt jetzt auf dem Tablet (`section-slot-empty-row`).
+11
View File
@@ -114,6 +114,17 @@ @container section (min-width: 40rem) {
}
}
/*
* Tablet, mehrere Zeilen (zum Beispiel 2 × 2): Eine Zeile, in der alle Plätze leer sind, entfällt, damit ihr Abstand keine
* Lücke lässt. Die Plätze danach rücken genau eine Zeile nach oben und bleiben in ihrer Spalte. Ab 60 rem steht alles in
* einer Zeile, dort bleibt jeder leere Platz stehen.
*/
@container section (min-width: 40rem) and (max-width: 59.99rem) {
.section-grid-tablet-columns > .section-slot-empty.section-slot-empty-row {
display: none;
}
}
/* Flächen */
.section-bg-light {
--color-surface: var(--color-surface-subtle);
+25
View File
@@ -93,6 +93,31 @@ public function test_empty_slots_keep_their_place_and_empty_sections_leave_no_ga
$this->assertSame(2, substr_count($html, 'section-slot-empty" data-units'), 'Nur leere Plätze in Abschnitten mit Inhalt bleiben stehen.');
}
public function test_a_fully_empty_row_of_the_tablet_grid_is_marked_so_it_leaves_no_gap(): void
{
$this->publish('/zeilen', [
['layout' => 'u1_1_1_1', 'style' => [], 'slots' => [null, null, $this->prose('Drei'), $this->prose('Vier')]],
['layout' => 'u1_1_1_1', 'style' => [], 'slots' => [$this->prose('Eins'), null, null, null]],
['layout' => 'u1_1_1_1', 'style' => [], 'slots' => [null, $this->prose('Zwei'), null, $this->prose('Vier')]],
['layout' => 'u1_3', 'style' => [], 'slots' => [null, $this->prose('Allein')]],
]);
$html = $this->get('/zeilen')->assertOk()->getContent();
$sections = array_slice(explode('<div class="page-section ', $html), 1);
// Oben leer: Die erste Zeile (Plätze 1 und 2) entfällt auf dem Tablet.
$this->assertSame(2, substr_count($sections[0], 'section-slot-empty section-slot-empty-row'));
// Unten leer: Die zweite Zeile (Plätze 3 und 4) entfällt; Platz 2 steht in der Zeile von Platz 1 und bleibt stehen.
$this->assertSame(2, substr_count($sections[1], 'section-slot-empty section-slot-empty-row'));
$this->assertSame(3, substr_count($sections[1], 'class="section-slot section-slot-empty'), 'Drei leere Plätze (2, 3 und 4) bleiben im Quelltext stehen.');
// In jeder Zeile steht ein Widget: Kein leerer Platz entfällt.
$this->assertStringNotContainsString('section-slot-empty-row', $sections[2]);
$this->assertStringContainsString('section-grid section-grid-tablet-columns', $sections[0]);
// Ungleiche Raster stapeln auf dem Tablet und kennen keine Zeilen nebeneinander.
$this->assertStringNotContainsString('section-grid-tablet-columns', $sections[3]);
$this->assertStringNotContainsString('section-slot-empty-row', $sections[3]);
}
public function test_background_image_comes_from_the_public_area_with_focus_and_overlay(): void
{
Queue::fake();