File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
resources/views/components Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 66] )
77
88@php
9- $iconClasses = [
9+ $iconClass = match ( $iconSize ) {
1010 ' sm' => ' w-4 h-4' ,
1111 ' md' => ' w-6 h-6' ,
1212 ' lg' => ' w-16 h-16' ,
1313 ' xl' => ' w-24 h-24' ,
14- ];
14+ default => $iconSize ,
15+ } . ' opacity-20' ;
1516@endphp
1617
1718<div @class ([
1819 ' curator-document-image grid place-items-center w-full h-full text-xs uppercase relative' ,
1920 $attributes -> get (' class' )
2021] )>
2122 @if (str ($type )-> contains (' video' ) )
22- @svg (' heroicon-o-video-camera' , [ ' class ' => ' opacity-20 ' . $iconClasses [ $iconSize ]] )
23+ @svg (' heroicon-o-video-camera' , $iconClass )
2324 <span class =" block absolute" >{{ $extension } } </span >
2425 @else
25- @svg (' heroicon-o-document' , [ ' class ' => ' opacity-20 ' . $iconClasses [ $iconSize ]] )
26+ @svg (' heroicon-o-document' , $iconClass )
2627 <span class =" block absolute" >{{ $extension } } </span >
2728 @endif
2829 <span class =" sr-only" >{{ $label } } </span >
You can’t perform that action at this time.
0 commit comments