mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-08-26 05:41:56 +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%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.image-preview img
|
||||||
|
{
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
.preview-container
|
.preview-container
|
||||||
{
|
{
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user