feat: add Browser viewport fallback to v1

This commit is contained in:
Benjamin Nussbaum 2025-09-18 15:43:15 +02:00
parent 29d1838690
commit 8791a5154e
3 changed files with 21 additions and 7 deletions

View file

@ -1,7 +1,20 @@
@props([
'noBleed' => false,
'darkMode' => false,
'deviceVariant' => 'og',
'deviceOrientation' => null,
'colorDepth' => '1bit',
'scaleLevel' => null,
])
<x-trmnl::screen colorDepth="{{$colorDepth}}">
{!! $slot !!}
</x-trmnl::screen>
@if(config('app.puppeteer_window_size_strategy') === 'v1')
<x-trmnl::screen colorDepth="{{$colorDepth}}">
{!! $slot !!}
</x-trmnl::screen>
@else
<x-trmnl::screen colorDepth="{{$colorDepth}}" no-bleed="{{$noBleed}}" dark-mode="{{$darkMode}}"
device-variant="{{$deviceVariant}}" device-orientation="{{$deviceOrientation}}"
scale-level="{{$scaleLevel}}">
{!! $slot !!}
</x-trmnl::screen>
@endif