mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-13 05:51:03 +00:00
Merge pull request #359 from erqan/patch-1
adding max-width for large images...
This commit is contained in:
commit
2e6c2ac128
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user