Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Plugins/BetterImagePopups/BetterImagePopups.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const BetterImagePopups = (function() {
const script = {
name: "Better Image Popups",
file: "BetterImagePopups",
version: "1.5.8",
version: "1.5.9",
author: "Orrie",
desc: "Improves the image popups with full resolution images (if activated) and zooming from native size when clicking on them",
url: "https://github.com/Orrielel/BetterDiscordAddons/tree/master/Plugins/BetterImagePopups",
Expand All @@ -28,7 +28,7 @@ const BetterImagePopups = (function() {
css: {
script:`
.bip-container {text-align: center;}
.bip-container .scrollerWrap-2lJEkd {min-height: unset;}
.bip-container .scrollerWrap-2lJEkd {min-height: unset; max-width: 100vh; max-height: 100vh; display: inline;}
.bip-container .imageWrapper-2p5ogY img {position: static;}
.bip-container .spinner-2enMB9 {position: absolute;}
.bip-container .bip-scroller {display: flex; align-items: self-start; margin-bottom: 6px; max-height: calc(100vh - 220px); max-width: calc(100vw - 220px); overflow: auto;}
Expand All @@ -46,7 +46,7 @@ const BetterImagePopups = (function() {
.bip-container .orrie-tooltip .tooltipTop-XDDSxx {bottom: calc(100% + 10px);}
.bip-container .orrie-tooltip .tooltipBottom-3ARrEK {top: 100%;}
.bip-container.bip-scaling .scrollerWrap-2lJEkd .tooltip {display: none;}
.bip-container .downloadLink-1ywL9o {align-self: unset; text-transform: capitalize;}
.bip-container .downloadLink-1ywL9o {align-self: unset; text-transform: capitalize; position: relative;}
.bip-container .bip-seperator {margin: 0 5px;}
.bip-container span.downloadLink-1ywL9o {display: none;}

Expand Down Expand Up @@ -431,7 +431,7 @@ const BetterImagePopups = (function() {
observer({addedNodes}) {
if (addedNodes.length > 0) {
const node = addedNodes[0];
if (node.classList && node.classList.contains("modal-3c3bKg")) {
if (node.classList && node.classList.contains("layer-2KE1M9")) {
const wrapper = node.getElementsByClassName("imageWrapper-2p5ogY")[0];
if (wrapper && !wrapper.classList.contains("embedVideoImageComponent-34z3di") && !node.getElementsByClassName("uploadModal-2ifh8j")[0]) {
BdApi.clearCSS(`${script.file}-zoom`);
Expand Down