This commit is contained in:
Mirco Wittrien 2020-01-17 13:28:18 +01:00
parent bb767e59bd
commit 2403b5fa0e
3 changed files with 15 additions and 13 deletions

View File

@ -4486,6 +4486,9 @@
iconSwatchPreview: "preview-Bbg_24",
iconSwatchSelected: "selected-P5oePO"
};
DiscordClassModules.ShowImageDetails = {
details: "details-1t6Zms"
};
DiscordClassModules.SpellCheck = {
error: "error-k9z2IV",
overlay: "spellCheckOverlay-cNSap5"
@ -4753,6 +4756,7 @@
_readallnotificationsbuttonbutton: ["ReadAllNotificationsButton", "button"],
_readallnotificationsbuttonframe: ["ReadAllNotificationsButton", "frame"],
_readallnotificationsbuttoninner: ["ReadAllNotificationsButton", "innerFrame"],
_showimagedetailsdetails: ["ShowImageDetails", "details"],
_spellcheckerror: ["SpellCheck", "error"],
_spellcheckoverlay: ["SpellCheck", "overlay"],
_serverfoldersdragpreview: ["ServerFolders", "dragPreview"],

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@
class ShowImageDetails {
getName () {return "ShowImageDetails";}
getVersion () {return "1.1.7";}
getVersion () {return "1.1.8";}
getAuthor () {return "DevilBro";}
@ -23,17 +23,15 @@ class ShowImageDetails {
initConstructor () {
this.css = `
.image-details .image-details-size {
margin: 0 10px;
}
.image-details-tooltip {
max-width: 500px;
}
.image-details-tooltip .image-details-tooltip-size {
margin: 10px 0;
}
${BDFDB.dotCN._showimagedetailsdetails} {
margin-bottom: 10px;
}
${BDFDB.dotCNS.spoilerhidden + BDFDB.dotCN._showimagedetailsdetails} {
visibility: hidden;
max-width: 1px;
}
`;
this.defaults = {
settings: {
showOnHover: {value:false, description:"Show the details as Tooltip instead:"}
@ -154,7 +152,7 @@ class ShowImageDetails {
});
else return [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
className: "image-details",
className: BDFDB.disCN._showimagedetailsdetails,
children: [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex.Child, {
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Anchor, {