diff --git a/resources/views/components/tables/curator-column.blade.php b/resources/views/components/tables/curator-column.blade.php index 5a2b757..38b4b8b 100644 --- a/resources/views/components/tables/curator-column.blade.php +++ b/resources/views/components/tables/curator-column.blade.php @@ -10,6 +10,18 @@ default => 'ring', }; + $ringClasses = \Illuminate\Support\Arr::toCssClasses([ + 'ring-white dark:ring-gray-900', + match ($ring) { + 0 => null, + 1 => 'ring-1', + 2 => 'ring-2', + 3 => 'ring', + 4 => 'ring-4', + default => $ring, + }, + ]); + $overlap = match ($overlap) { 0 => 'space-x-0', 2 => '-space-x-2', @@ -18,6 +30,8 @@ default => '-space-x-1', }; + $defaultImageUrl = $getDefaultImageUrl(); + $resolution = $getResolution(); $height = $getHeight(); @@ -91,5 +105,21 @@ class="h-full w-full" @endif @endforeach + @elseif($defaultImageUrl) + class([ + 'max-w-none object-cover object-center', + 'rounded-full' => $isCircular, + $ringClasses, + ]) + ->style([ + "height: {$height}" => $height, + "width: {$width}" => $width, + ]) + }} + /> @endif - \ No newline at end of file +