fix(#76): rotate back preview image
Some checks are pending
tests / ci (push) Waiting to run

This commit is contained in:
Benjamin Nussbaum 2025-08-15 23:40:26 +02:00
parent 0503be65c2
commit a88e72b75e
4 changed files with 96 additions and 2 deletions

View file

@ -95,7 +95,11 @@ new class extends Component {
</flux:callout>
@elseif($current_image_path)
<flux:separator class="mt-2 mb-4"/>
<img src="{{ asset($current_image_path) }}" class="max-h-[480px]" alt="Current Image"/>
<div class="flex justify-center">
<div class="relative origin-center -rotate-[{{ $device->rotate ?? 0 }}deg]">
<img src="{{ asset($current_image_path) }}" class="max-h-[480px]" alt="Current Image"/>
</div>
</div>
@endif
</div>
</div>

View file

@ -455,7 +455,11 @@ new class extends Component {
@if(!$device->mirror_device_id)
@if($current_image_path)
<flux:separator class="mt-6 mb-6" text="Screen"/>
<img src="{{ asset($current_image_path) }}" class="max-h-[480px]" alt="Next Image"/>
<div class="flex justify-center">
<div class="relative origin-center -rotate-[{{ $device->rotate ?? 0 }}deg]">
<img src="{{ asset($current_image_path) }}" class="max-h-[480px]" alt="Next Image"/>
</div>
</div>
@endif
<flux:separator class="mt-6 mb-6" text="Playlists"/>