Fix distorted images in admin file list

This commit is contained in:
Kijin Sung 2024-04-29 23:45:10 +09:00
parent d7053be5fa
commit d127e334b0

View file

@ -93,7 +93,7 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
<!-- one document end -->
<tr>
<td><!--@if(preg_match('/\.(?:bmp|gif|jpe?g|png|webp)$/i', $val->source_filename))-->
<img src="{$val->uploaded_filename}" style="width:50px; height:50px">
<img src="{$val->uploaded_filename}" style="width:50px;height:50px;object-fit:cover">
<!--@end-->
<a href="{htmlspecialchars_decode($val->download_url)}">{htmlspecialchars($val->source_filename, ENT_COMPAT | ENT_HTML401, 'UTF-8', false)}</a></td>
<td class="nowr">{FileHandler::filesize($val->file_size)}</td>