diff --git a/resources/views/mails/html.blade.php b/resources/views/mails/html.blade.php index 35ee85f..3bb12fe 100644 --- a/resources/views/mails/html.blade.php +++ b/resources/views/mails/html.blade.php @@ -1,7 +1,5 @@ -
-- {{ $html }} -
++diff --git a/resources/views/mails/preview.blade.php b/resources/views/mails/preview.blade.php index f7cbdab..aac81a4 100644 --- a/resources/views/mails/preview.blade.php +++ b/resources/views/mails/preview.blade.php @@ -1 +1,5 @@ - ++{{ $html }}
+ +diff --git a/src/Resources/MailResource.php b/src/Resources/MailResource.php index 85f8304..3dca4fd 100644 --- a/src/Resources/MailResource.php +++ b/src/Resources/MailResource.php @@ -187,6 +187,7 @@ public static function infolist(Infolist $infolist): Infolist TextEntry::make('html') ->hiddenLabel() ->label(__('HTML Content')) + ->extraAttributes(['class' => 'overflow-x-auto']) ->formatStateUsing(fn(string $state, Mail $record): View => view( 'filament-mails::mails.preview', ['html' => $state, 'mail' => $record], @@ -196,6 +197,7 @@ public static function infolist(Infolist $infolist): Infolist ->schema([ TextEntry::make('html') ->hiddenLabel() + ->extraAttributes(['class' => 'overflow-x-auto']) ->formatStateUsing(fn(string $state, Mail $record): View => view( 'filament-mails::mails.html', ['html' => $state, 'mail' => $record],