Pflege Anzeigedaten ohne neue Fassung und zeige sie in den echten Karten.
Der Medieneditor trennt Beschreibung, Inhalt, Fassungen und Verwendung. Der vorhandene Picker filtert nach Zusammenhang und lässt Entwürfe für die gemeinsame Freigabe sichtbar. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
3e56314cf9
commit
d37a7093dd
13 files changed
+827
-54
No files matched your search
@@ -1,8 +1,30 @@
|
||||
@php
|
||||
use App\Domain\Catalog\ContentVersionStatus;
|
||||
$fokus = $this->bereich;
|
||||
@endphp
|
||||
|
||||
@include('filament.media.library-styles')
|
||||
@include('filament.editorial.styles')
|
||||
|
||||
<nav class="luf-ws-tabs" aria-label="Bereiche des Mediums">
|
||||
@foreach ([
|
||||
'beschreibung' => 'Beschreibung',
|
||||
'inhalt' => 'Inhalt',
|
||||
'fassungen' => 'Fassungen',
|
||||
'herkunft' => 'Herkunft',
|
||||
'verwendung' => 'Verwendung',
|
||||
'auswahl' => 'Auswahl',
|
||||
'vorschau' => 'Vorschau',
|
||||
] as $value => $label)
|
||||
<button type="button" wire:click="$set('bereich', '{{ $value }}')" aria-pressed="{{ $fokus === $value ? 'true' : 'false' }}">{{ $label }}</button>
|
||||
@endforeach
|
||||
</nav>
|
||||
|
||||
@if (in_array($fokus, ['beschreibung', 'herkunft', 'verwendung', 'auswahl', 'vorschau'], true))
|
||||
@include('filament.media.editor-panels')
|
||||
@else
|
||||
<div style="display: grid; gap: 1.5rem;">
|
||||
@if ($fokus !== 'fassungen')
|
||||
<section style="display: grid; gap: 0.75rem;">
|
||||
<h2 style="font-size: 1.125rem; font-weight: 600;">{{ $element->working_title }}</h2>
|
||||
@if (filled($element->description))
|
||||
@@ -60,6 +82,7 @@
|
||||
@endif
|
||||
</section>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<section style="display: grid; gap: 0.75rem;">
|
||||
@if ($shown === null)
|
||||
@@ -127,7 +150,7 @@
|
||||
@endif
|
||||
</section>
|
||||
|
||||
@if ($usage !== [])
|
||||
@if ($fokus !== 'fassungen' && $usage !== [])
|
||||
<section style="display: grid; gap: 0.35rem;">
|
||||
<h2 style="font-size: 1.125rem; font-weight: 600;">Verwendung</h2>
|
||||
@foreach ($usage as $line)
|
||||
@@ -136,3 +159,30 @@
|
||||
</section>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<script>
|
||||
window.lufLivePreview = window.lufLivePreview || function (frame) {
|
||||
const stage = frame.parentElement;
|
||||
const width = Number(frame.dataset.width) || 640;
|
||||
const fit = () => {
|
||||
const doc = frame.contentDocument;
|
||||
if (!doc || !doc.documentElement || !stage) return;
|
||||
const scale = Math.min(1, stage.clientWidth / width);
|
||||
frame.style.width = width + 'px';
|
||||
const height = doc.documentElement.scrollHeight;
|
||||
frame.style.height = height + 'px';
|
||||
frame.style.transform = 'scale(' + scale + ')';
|
||||
stage.style.height = Math.ceil(height * scale) + 'px';
|
||||
};
|
||||
fit();
|
||||
try {
|
||||
const doc = frame.contentDocument;
|
||||
doc.fonts?.ready.then(fit);
|
||||
if (window.ResizeObserver) {
|
||||
new ResizeObserver(fit).observe(doc.body);
|
||||
new ResizeObserver(fit).observe(stage);
|
||||
}
|
||||
} catch (error) {}
|
||||
};
|
||||
</script>
|
||||
Reference in new issue
Block a user