1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #1116 from samuel9554/Zoom_In_on_Photos

[Feature Request] Zoom In on Photos
This commit is contained in:
dkanada 2020-04-23 13:56:51 +09:00 committed by GitHub
commit 928e2f797b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 12 deletions

View file

@ -76,7 +76,7 @@
"screenfull": "^5.0.2", "screenfull": "^5.0.2",
"shaka-player": "^2.5.10", "shaka-player": "^2.5.10",
"sortablejs": "^1.10.2", "sortablejs": "^1.10.2",
"swiper": "^5.3.1", "swiper": "^5.3.7",
"webcomponents.js": "^0.7.24", "webcomponents.js": "^0.7.24",
"whatwg-fetch": "^3.0.0" "whatwg-fetch": "^3.0.0"
}, },

View file

@ -258,6 +258,11 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f
direction: 'horizontal', direction: 'horizontal',
// Loop is disabled due to the virtual slides option not supporting it. // Loop is disabled due to the virtual slides option not supporting it.
loop: false, loop: false,
zoom: {
minRatio: 1,
toggle: true,
containerClass: 'slider-zoom-container'
},
autoplay: !options.interactive, autoplay: !options.interactive,
keyboard: { keyboard: {
enabled: true enabled: true

View file

@ -41,17 +41,12 @@
} }
.swiper-slide-img { .swiper-slide-img {
width: auto; width: 100%;
height: auto; height: 100%;
max-width: 100%; display: flex;
max-height: 100%; justify-content: center;
-ms-transform: translate(-50%, -50%); align-items: center;
-webkit-transform: translate(-50%, -50%); text-align: center;
-moz-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
position: absolute;
left: 50%;
top: 50%;
} }
.slideshowButtonIcon { .slideshowButtonIcon {
@ -138,3 +133,12 @@
.slideSubtitle { .slideSubtitle {
color: #ccc; color: #ccc;
} }
.swiper-slide {
display: flex;
flex-direction: column;
}
.slider-zoom-container {
margin: auto;
}