byos_laravel/resources/views/trmnl-layouts/single.blade.php
Benjamin Nussbaum 80e2e8058a
Some checks failed
tests / ci (push) Has been cancelled
fix(#103): add recipe options to remove bleed margin and enable dark mode
2025-10-30 15:13:50 +01:00

20 lines
694 B
PHP

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