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:
xololunatic 2023-04-24 08:59:09 +05:30 committed by GitHub
parent 8194249b66
commit 6f7b0c6326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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