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>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-26 12:00:35 +01:00
1 parent 40f8a4afc2
commit 28bd5590bc
5 files changed
+62 -5

No files matched your search

+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();