Update ImageUtilities.plugin.js
This commit is contained in:
parent
d04b88d574
commit
ef6824ac62
|
@ -2,7 +2,7 @@
|
||||||
* @name ImageUtilities
|
* @name ImageUtilities
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 4.8.2
|
* @version 4.8.3
|
||||||
* @description Adds several Utilities for Images/Videos (Gallery, Download, Reverse Search, Zoom, Copy, etc.)
|
* @description Adds several Utilities for Images/Videos (Gallery, Download, Reverse Search, Zoom, Copy, etc.)
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -17,7 +17,7 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "ImageUtilities",
|
"name": "ImageUtilities",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "4.8.2",
|
"version": "4.8.3",
|
||||||
"description": "Adds several Utilities for Images/Videos (Gallery, Download, Reverse Search, Zoom, Copy, etc.)"
|
"description": "Adds several Utilities for Images/Videos (Gallery, Download, Reverse Search, Zoom, Copy, etc.)"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -312,6 +312,13 @@ module.exports = (_ => {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
width: unset;
|
width: unset;
|
||||||
}
|
}
|
||||||
|
${BDFDB.dotCN.imagemodalnavbutton} {
|
||||||
|
background: rgba(0, 0, 0, 0.3);
|
||||||
|
border-radius: 100%;
|
||||||
|
}
|
||||||
|
${BDFDB.dotCN.imagemodalnavbutton}:hover {
|
||||||
|
background: rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
${BDFDB.dotCN._imageutilitiessibling} {
|
${BDFDB.dotCN._imageutilitiessibling} {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -946,7 +953,7 @@ module.exports = (_ => {
|
||||||
let modal = BDFDB.DOMUtils.getParent(BDFDB.dotCN.modal, e.node);
|
let modal = BDFDB.DOMUtils.getParent(BDFDB.dotCN.modal, e.node);
|
||||||
if (modal) {
|
if (modal) {
|
||||||
modal.className = BDFDB.DOMUtils.formatClassName(modal.className, this.settings.viewerSettings.galleryMode && BDFDB.disCN._imageutilitiesgallery, this.settings.viewerSettings.details && BDFDB.disCN._imageutilitiesdetailsadded);
|
modal.className = BDFDB.DOMUtils.formatClassName(modal.className, this.settings.viewerSettings.galleryMode && BDFDB.disCN._imageutilitiesgallery, this.settings.viewerSettings.details && BDFDB.disCN._imageutilitiesdetailsadded);
|
||||||
if (this.settings.viewerSettings.zoomMode) {
|
if (this.settings.viewerSettings.galleryMode) {
|
||||||
BDFDB.DOMUtils.addClass(modal, BDFDB.disCN.imagemodal);
|
BDFDB.DOMUtils.addClass(modal, BDFDB.disCN.imagemodal);
|
||||||
BDFDB.DOMUtils.removeClass(modal, BDFDB.disCN.modalcarouselmodal, BDFDB.disCN.modalcarouselmodalzoomed);
|
BDFDB.DOMUtils.removeClass(modal, BDFDB.disCN.modalcarouselmodal, BDFDB.disCN.modalcarouselmodalzoomed);
|
||||||
}
|
}
|
||||||
|
@ -1173,7 +1180,7 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
|
|
||||||
processModalCarousel (e) {
|
processModalCarousel (e) {
|
||||||
if (this.settings.viewerSettings.zoomMode) {
|
if (this.settings.viewerSettings.galleryMode) {
|
||||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "ImageModal"});
|
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "ImageModal"});
|
||||||
if (index > -1) return children[index];
|
if (index > -1) return children[index];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue