Files
laraundfelix/resources/views/filament/media/preview-frame.blade.php
T
LarsandCursor 72130d66c5
Deploy Test / test (push) Successful in 52s
Deploy Test / deploy (push) Successful in 32s
Mache den Medieneditor breit, ruhig und mit lesbaren Registerkarten.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 20:51:36 +01:00

20 lines
1.4 KiB
PHP

<div class="luf-ws">
<div class="luf-scopes" role="group" aria-label="Darstellung">
<button type="button" wire:click="$set('previewSurface', 'website')" aria-pressed="{{ $this->previewSurface === 'website' ? 'true' : 'false' }}">Website-Karte</button>
<button type="button" wire:click="$set('previewSurface', 'bibliothek')" aria-pressed="{{ $this->previewSurface === 'bibliothek' ? 'true' : 'false' }}">Bibliothek</button>
</div>
<div class="luf-scopes" role="group" aria-label="Breite">
<button type="button" wire:click="$set('previewWidth', '640')" aria-pressed="{{ $this->previewWidth === '640' ? 'true' : 'false' }}">Desktop</button>
<button type="button" wire:click="$set('previewWidth', '390')" aria-pressed="{{ $this->previewWidth === '390' ? 'true' : 'false' }}">Mobil</button>
</div>
@include('filament.cms.widget-live-preview', [
'html' => $this->previewHtml(),
'stylesheets' => \App\Filament\Support\WidgetEditor::previewStylesheets(),
'width' => (int) $this->previewWidth,
'bodyClass' => $this->previewSurface === 'bibliothek' ? 'member' : '',
'caption' => $this->previewSurface === 'bibliothek'
? 'Bibliothekskarte bei '.$this->previewWidth.' px. Dieselbe Karte wie im Mitgliederbereich.'
: 'Website-Karte bei '.$this->previewWidth.' px. Dieselbe Karte wie im öffentlichen Auftritt. Das Bibliotheksbild ist nur hier sichtbar.',
])
</div>