mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-08 00:42:19 +02:00
fix image content (not viewable)
Fixed the image content problem where if the images were not fit to the size of devices and were not viewable had to scroll down and up to view the whole big image. With this fix, The whole image is fitted perfectly. (also for different kinds of devices, now its easily viewable and looks good as image viewer)
This commit is contained in:
parent
8194249b66
commit
6f7b0c6326
|
@ -1783,7 +1783,7 @@ if (isset($_GET['view'])) {
|
|||
} elseif ($is_image) {
|
||||
// Image content
|
||||
if (in_array($ext, array('gif', 'jpg', 'jpeg', 'png', 'bmp', 'ico', 'svg', 'webp', 'avif'))) {
|
||||
echo '<p><img src="' . fm_enc($file_url) . '" alt="image" class="preview-img-container" class="preview-img"></p>';
|
||||
echo '<p><img src="' . fm_enc($file_url) . '" alt="" class="preview-img"></p>';
|
||||
}
|
||||
} elseif ($is_audio) {
|
||||
// Audio content
|
||||
|
|
Loading…
Reference in a new issue