mirror of
https://github.com/Ad-closeNN/blog-fuwari.git
synced 2026-05-31 01:40:03 -04:00
chore: 灯箱优化
This commit is contained in:
@@ -671,7 +671,12 @@ function createPhotoSwipe() {
|
|||||||
showHideAnimationType: "fade",
|
showHideAnimationType: "fade",
|
||||||
showAnimationDuration: 160,
|
showAnimationDuration: 160,
|
||||||
hideAnimationDuration: 140,
|
hideAnimationDuration: 140,
|
||||||
secondaryZoomLevel: (zoomLevel) => Math.min(2.5, zoomLevel.max),
|
secondaryZoomLevel: (zoomLevel) => {
|
||||||
|
const fitLevel = zoomLevel.fit
|
||||||
|
const forcedZoomLevel = fitLevel * 1.8
|
||||||
|
return Math.max(forcedZoomLevel, Math.min(3, zoomLevel.max))
|
||||||
|
},
|
||||||
|
maxZoomLevel: (zoomLevel) => Math.max(4, zoomLevel.fit * 2.5, zoomLevel.max),
|
||||||
wheelToZoom: true,
|
wheelToZoom: true,
|
||||||
arrowPrev: false,
|
arrowPrev: false,
|
||||||
arrowNext: false,
|
arrowNext: false,
|
||||||
|
|||||||
@@ -30,8 +30,12 @@
|
|||||||
.pswp__button--open-link .pswp__icn {
|
.pswp__button--open-link .pswp__icn {
|
||||||
width: 24px !important;
|
width: 24px !important;
|
||||||
height: 24px !important;
|
height: 24px !important;
|
||||||
|
position: static !important;
|
||||||
|
display: block !important;
|
||||||
|
margin: auto !important;
|
||||||
|
transform: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pswp__button--open-link .pswp__icn path {
|
.pswp__button--open-link .pswp__icn path {
|
||||||
fill: currentColor !important;
|
fill: white !important;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user