mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
reduced size of gallery images
This commit is contained in:
parent
e9b03f82ff
commit
a46c0b8a2d
2 changed files with 9 additions and 8 deletions
|
@ -1606,7 +1606,9 @@
|
|||
|
||||
createGalleryImage: function (item, type, tag, index) {
|
||||
|
||||
var lightboxWidth = 800;
|
||||
var screenWidth = Math.max(screen.height, screen.width);
|
||||
screenWidth = Math.min(screenWidth, 1280);
|
||||
|
||||
var html = '';
|
||||
|
||||
if (typeof (index) == "undefined") index = 0;
|
||||
|
@ -1614,7 +1616,7 @@
|
|||
html += '<div class="galleryImageContainer">';
|
||||
html += '<a href="#pop_' + index + '_' + tag + '" data-transition="fade" data-rel="popup" data-position-to="window">';
|
||||
html += '<img class="galleryImage" src="' + LibraryBrowser.getImageUrl(item, type, index, {
|
||||
maxwidth: lightboxWidth,
|
||||
maxwidth: screenWidth,
|
||||
tag: tag
|
||||
}) + '" />';
|
||||
html += '</div>';
|
||||
|
@ -1623,7 +1625,7 @@
|
|||
html += '<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>';
|
||||
html += '<img class="" src="' + LibraryBrowser.getImageUrl(item, type, index, {
|
||||
|
||||
maxwidth: lightboxWidth,
|
||||
maxwidth: screenWidth,
|
||||
tag: tag
|
||||
|
||||
}) + '" />';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue