Browse Source

Merge pull request #359 from erqan/patch-1

adding max-width for large images...
readme-update
miguelfreitas 8 years ago committed by GitHub
parent
commit
2e6c2ac128
  1. 4
      css/style.css
  2. 4
      js/interface_common.js

4
css/style.css

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

4
js/interface_common.js

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

Loading…
Cancel
Save