File tree Expand file tree Collapse file tree 4 files changed +73
-58
lines changed
Expand file tree Collapse file tree 4 files changed +73
-58
lines changed Original file line number Diff line number Diff line change 2626 'delete_file ' => 'Datei löschen ' ,
2727 'yes_delete ' => 'Ja, löschen ' ,
2828 'cancel ' => 'Abbrechen ' ,
29+ 'download_file ' => 'Datei herunterladen ' ,
2930
3031 // Notifications
3132 'delete_error ' => 'Fehler beim Löschen ' ,
Original file line number Diff line number Diff line change 2626 'delete_file ' => 'Delete File ' ,
2727 'yes_delete ' => 'Yes, Delete ' ,
2828 'cancel ' => 'Cancel ' ,
29+ 'download_file ' => 'Download File ' ,
2930
3031 // Notifications
3132 'delete_error ' => 'Error Deleting ' ,
Original file line number Diff line number Diff line change 66 }
77 </style >
88 <div class =" flex justify-center" >
9- < a href = " {{ $ getState () } } " target = " _blank " class = " flex justify-center " >
10- @php
11- $mimeTypeIcon = $ getMimeTypeIcon ( );
12- @endphp
9+ @php
10+ $mimeTypeIcon = $ getMimeTypeIcon ();
11+ $isImage = str_starts_with ($ getRecord () -> mime_type , ' image/ ' );
12+ @endphp
1313
14- @if ($mimeTypeIcon )
15- <div class =" flex flex-col justify-between items-center w-full" >
14+ @if ($mimeTypeIcon )
15+ <div class =" flex flex-col justify-between items-center w-full" >
16+ <a href =" {{ $getState () } }" target =" _blank" >
1617 <img src =" {{ $mimeTypeIcon [' icon' ] } }" class =" w-16 h-16" alt =" {{ $mimeTypeIcon [' label' ] } }" >
17- < div
18- class = " text-xs text-gray-700 w-full mt-2 overflow-hidden text-ellipsis whitespace-normal break-words px-2 " >
19- {{ $ getRecord () -> file_name } }
20- </ div >
18+ </ a >
19+ < div
20+ class = " text-xs text-gray-700 w-full mt-2 overflow-hidden text-ellipsis whitespace-normal break-words px-2 text-center " >
21+ {{ $ getRecord () -> file_name } }
2122 </div >
22- @else
23+ </div >
24+ @else
25+ <a href =" {{ $getState () } }" target =" _blank" >
2326 <img src =" {{ $getState () } }" class =" rounded-lg shadow-lg custom-image-width h-auto border border-gray-300"
2427 alt =" {{ $getRecord ()-> title ?? ' ' } }" >
25- @endif
26- </ a >
28+ </ a >
29+ @endif
2730 </div >
2831 @endif
2932</x-dynamic-component >
You can’t perform that action at this time.
0 commit comments