diff --git a/Library/_res/BDFDB.data.json b/Library/_res/BDFDB.data.json index 446b9354bf..97ac7ac4e7 100644 --- a/Library/_res/BDFDB.data.json +++ b/Library/_res/BDFDB.data.json @@ -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"], diff --git a/Library/_res/BDFDB.raw.css b/Library/_res/BDFDB.raw.css index 82e2e00a12..22a52816e2 100644 --- a/Library/_res/BDFDB.raw.css +++ b/Library/_res/BDFDB.raw.css @@ -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; } diff --git a/Plugins/EditChannels/EditChannels.plugin.js b/Plugins/EditChannels/EditChannels.plugin.js index be664f07e6..839409468a 100644 --- a/Plugins/EditChannels/EditChannels.plugin.js +++ b/Plugins/EditChannels/EditChannels.plugin.js @@ -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); } }