This commit is contained in:
Mirco Wittrien 2021-01-29 18:50:18 +01:00
parent d5ff666fc8
commit ab3de2ebdc
3 changed files with 13 additions and 2 deletions

View File

@ -579,6 +579,8 @@
"listInputDelete": "delete-M_nPTt",
"listInputItem": "item-wGC8aX",
"listInputItems": "items-D9PGwH",
"marginLeft4": "marginLeft4-58StzA",
"marginLeft8": "marginLeft8-3RhhAa",
"menuColorCustom": "colorCustom-44asd2",
"menuItemHint": "hint-BK71lM",
"modalHeaderShade": "shade-h6F4sT",
@ -2105,6 +2107,8 @@
"marginbottom40": ["Margins", "marginBottom40"],
"marginbottom60": ["Margins", "marginBottom60"],
"margincenterhorz": ["Margins", "marginCenterHorz"],
"marginleft4": ["BDFDB", "marginLeft4"],
"marginleft8": ["BDFDB", "marginLeft8"],
"marginreset": ["Margins", "marginReset"],
"margintop4": ["Margins", "marginTop4"],
"margintop8": ["Margins", "marginTop8"],

View File

@ -87,6 +87,13 @@ img:not([src]), img[src=""], img[src="null"] {
margin: 1px;
}
[REPLACE_CLASS_marginleft4] {
margin-left: 4px;
}
[REPLACE_CLASS_marginleft8] {
margin-left: 8px;
}
[REPLACE_CLASS_collapsecontainer] {
margin-bottom: 20px;
}

View File

@ -259,12 +259,12 @@ module.exports = (_ => {
if (e.instance.props.category) e.instance.props.category = this.getChannelData(e.instance.props.category.id);
}
else {
let channelName = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.marginleft4]]});
let channelName = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.autocompleterowcontentprimary]]});
if (channelName) this.changeChannelColor(channelName, e.instance.props.channel.id);
let channelIcon = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.autocompleteicon]]});
if (channelIcon) this.changeChannelIconColor(channelIcon, e.instance.props.channel.id, {alpha: 0.6});
if (e.instance.props.category) {
let categoryName = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.autocompletedescription]]});
let categoryName = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.autocompleterowcontentsecondary]]});
if (categoryName) this.changeChannelColor(categoryName, e.instance.props.category.id);
}
}