From 5aceef2c5a3d97cdb3a43b19740ec829115fc9aa Mon Sep 17 00:00:00 2001 From: Adam Weston Date: Wed, 7 Aug 2024 13:11:24 -0400 Subject: [PATCH] support svg preview in curator column --- .../components/tables/curator-column.blade.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/resources/views/components/tables/curator-column.blade.php b/resources/views/components/tables/curator-column.blade.php index 0608742a..5a2b7574 100644 --- a/resources/views/components/tables/curator-column.blade.php +++ b/resources/views/components/tables/curator-column.blade.php @@ -64,12 +64,22 @@ {!! $width !== null ? "width: {$width};" : null !!} " @class([ - 'h-full w-auto' => str($item->type)->contains('svg'), 'max-w-none' => $height && ! $width, - 'object-cover object-center' => ! str($item->type)->contains('svg') && ($isRounded() || $width || $height) + 'object-cover object-center' => ($isRounded() || $width || $height) ]) {{ $getExtraImgAttributeBag() }} /> + @elseif (str($item->type)->contains('svg')) + {{ $item->alt }} @else