Merge pull request #359 from erqan/patch-1

adding max-width for large images...
This commit is contained in:
miguelfreitas 2016-09-03 12:39:03 -03:00 committed by GitHub
commit 2e6c2ac128
2 changed files with 7 additions and 1 deletions

View File

@ -1305,6 +1305,10 @@ ol.toptrends-list {
{ {
width: 100%; width: 100%;
} }
.image-preview img
{
max-width: 100%;
}
.preview-container .preview-container
{ {
max-height: 500px; max-height: 500px;

View File

@ -1014,7 +1014,9 @@ function webtorrentFilePreview(file, previewContainer, isMedia) {
elem.pause(); elem.pause();
} }
}); });
imagePreview.find("video").removeAttr("autoplay"); var $vid = imagePreview.find("video");
$vid.removeAttr("autoplay");
$vid.on('click mouseup', muteEvent);
} else { } else {
file.getBlobURL(function (err, url) { file.getBlobURL(function (err, url) {
if (err) return console.error(err) if (err) return console.error(err)