Update ServerFolders.plugin.js
This commit is contained in:
parent
c64ef662a7
commit
64dcf762ec
|
@ -313,7 +313,7 @@ class ServerFolders {
|
|||
|
||||
getDescription () {return "Adds the feature to create folders to organize your servers. Right click a server > 'Serverfolders' > 'Create Server' to create a server. To add servers to a folder hold 'Ctrl' and drag the server onto the folder, this will add the server to the folderlist and hide it in the serverlist. To open a folder click the folder. A folder can only be opened when it has at least one server in it. To remove a server from a folder, open the folder and either right click the server > 'Serverfolders' > 'Remove Server from Folder' or hold 'Del' and click the server in the folderlist.";}
|
||||
|
||||
getVersion () {return "5.8.5";}
|
||||
getVersion () {return "5.8.6";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
|
@ -1264,8 +1264,14 @@ class ServerFolders {
|
|||
}
|
||||
});
|
||||
},100);
|
||||
})
|
||||
.find("a").attr("draggable","false");
|
||||
});
|
||||
|
||||
let copyinner = serverCopy.querySelector(BDFDB.dotCN.guildinner);
|
||||
let isselected = serverCopy.classList.contains(BDFDB.disCN.guildselected);
|
||||
let hasicon = !serverCopy.querySelector(BDFDB.dotCN.guildicon).classList.contains(BDFDB.disCN.avatarnoicon);
|
||||
|
||||
copyinner.style.setProperty("border-radius", isselected ? "15px" : "25px");
|
||||
copyinner.style.setProperty("background-color", hasicon ? null : BDFDB.color2RGB(this.DiscordConstants.Colors[isselected ? "BRAND_PURPLE" : "CHANNELS_GREY"]));
|
||||
|
||||
this.addHoverBehaviour(serverCopy);
|
||||
|
||||
|
@ -1307,8 +1313,8 @@ class ServerFolders {
|
|||
};
|
||||
|
||||
$(div)
|
||||
.on("mouseenter", (e) => {animate(1);})
|
||||
.on("mouseleave", (e) => {if (!div.classList.contains(BDFDB.disCN.guildselected)) animate(0);});
|
||||
.on("mouseenter", () => {animate(1);})
|
||||
.on("mouseleave", () => {if (!div.classList.contains(BDFDB.disCN.guildselected)) animate(0);});
|
||||
}
|
||||
|
||||
updateFolderPositions () {
|
||||
|
|
Loading…
Reference in New Issue