Biete das Vollbild für Vorschauclips je Widget an (ADR-43)
Neue Einstellung "fullscreen" (Vorgabe: nicht anbieten) an den Kartenwidgets und an Bild und Text. Die Schaltfläche erscheint nur mit freigegebenem Clip und wenn das Gerät Vollbild kann. Im Vollbild gibt es Ton und native Bedienung, Scrollen und Zeiger stoppen den Clip nicht; beim Verlassen kehrt die Karte zum Kartenbild zurück. Gemeinsames Modul resources/js/player/fullscreen.js. iPhone-Weg bisher nur als Logik, Gerätetest steht aus. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fd5db90b77
commit
adaa68948a
11 files changed
+382
-7
No files matched your search
@@ -57,7 +57,7 @@
|
||||
@if ($imageUrl)
|
||||
<div class="lf-bt__media" @if ($clipUrl !== null) data-card-clip data-clip-src="{{ $clipUrl }}" data-clip-title="{{ $clipTitle }}" @endif>
|
||||
<img class="lf-bt__image" src="{{ $imageUrl }}" @if (! empty($imageSrcset)) srcset="{{ $imageSrcset }}" sizes="100vw" @endif alt="{{ $imageAlt ?? '' }}" @if (! empty($first)) loading="eager" fetchpriority="high" @else loading="lazy" @endif decoding="async">
|
||||
@include('widgets.partials.card-clip')
|
||||
@include('widgets.partials.card-clip', ['clipFullscreen' => $clipUrl !== null && ! empty($videoFullscreen)])
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@@ -10,4 +10,10 @@
|
||||
<button type="button" class="lf-pc__clip-toggle" aria-pressed="false" data-clip-toggle aria-label="Trailer abspielen: {{ $clipTitle }}">
|
||||
<svg class="lf-pc__clip-icon" viewBox="0 0 24 24" focusable="false" aria-hidden="true"><path class="lf-pc__clip-play" d="M8 5.5v13l11-6.5z" fill="currentColor"/><path class="lf-pc__clip-pause" d="M7 5h4v14H7zM13 5h4v14h-4z" fill="currentColor"/></svg>
|
||||
</button>
|
||||
@if (! empty($clipFullscreen))
|
||||
{{-- Vollbild (nur Clip, nie der vollständige Film): bleibt verborgen, bis resources/js/card-clip.js es freigibt und das Gerät Vollbild kann. --}}
|
||||
<button type="button" class="lf-pc__clip-fullscreen" hidden data-clip-fullscreen aria-label="Vollbild: {{ $clipTitle }}">
|
||||
<svg class="lf-pc__clip-fullscreen-icon" viewBox="0 0 24 24" focusable="false" aria-hidden="true"><path d="M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||
</button>
|
||||
@endif
|
||||
@endif
|
||||
Reference in new issue
Block a user