adding max-width for large images...
@ -1305,6 +1305,10 @@ ol.toptrends-list {
{
width: 100%;
}
.image-preview img
max-width: 100%;
.preview-container
max-height: 500px;
@ -1014,7 +1014,9 @@ function webtorrentFilePreview(file, previewContainer, isMedia) {
elem.pause();
});
imagePreview.find("video").removeAttr("autoplay");
var $vid = imagePreview.find("video");
$vid.removeAttr("autoplay");
$vid.on('click mouseup', muteEvent);
} else {
file.getBlobURL(function (err, url) {
if (err) return console.error(err)