Lass die Höhe des Einstiegs mit Foto auf breiten Plätzen mitwachsen (ADR-71)
Bei Abschnittsbreite Breit oder Vollbreite blieb die Mindesthöhe fest, das Foto wurde zu einem schmalen Streifen beschnitten (bei 2560 px nur 28 Prozent der Bildhöhe). Die Mindesthöhe folgt nun der Breite oberhalb des Standardabschnitts, begrenzt auf 80 Prozent der Fensterhöhe. Standardabschnitt, Tablet und Handy bleiben unverändert. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
05dc1170aa
commit
9c4bbc7b44
6 files changed
+54
No files matched your search
@@ -137,6 +137,19 @@ public function test_every_zooming_stylesheet_keeps_the_frame_filled_and_clipped
|
||||
$this->assertStringContainsString('scale: var(--pc-zoom, 1)', $card);
|
||||
}
|
||||
|
||||
public function test_the_hero_photo_keeps_its_aspect_ratio_on_wide_places(): void
|
||||
{
|
||||
$css = (string) file_get_contents(resource_path('css/components/lf-hero.css'));
|
||||
|
||||
// Die Mindesthöhe wächst mit der Breite (cqi), begrenzt auf 80 % der Fensterhöhe; schmale Plätze behalten min-block-size: 0.
|
||||
$this->assertMatchesRegularExpression('/\.lf-hero--photo-split\s*\{\s*min-block-size: min\(.*100cqi \* var\(--ds-media\) \* 0\.0009146.*80svh/s', $css);
|
||||
$this->assertGreaterThan(
|
||||
strpos($css, '.lf-hero--photo-split {'),
|
||||
strpos($css, '@container lf-hero (max-width: 859.99px) {'),
|
||||
'Die Regel für breite Plätze steht vor dem Sicherheitsumbruch, der die Mindesthöhe wieder auf 0 setzt.',
|
||||
);
|
||||
}
|
||||
|
||||
public function test_the_dialogs_offer_a_zoom_slider_next_to_the_focus(): void
|
||||
{
|
||||
$hero = app(WidgetRegistry::class)->get('hero');
|
||||
|
||||
Reference in new issue
Block a user