From 9f64a626d2ab04cb43d3d7dc2d34f1d5961766bf Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 15 Dec 2020 10:26:20 +0100 Subject: [PATCH] stuff --- Library/0BDFDB.plugin.js | 10 ++++------ Library/_res/BDFDB.data.json | 4 ++++ Library/_res/BDFDB.raw.css | 9 +++++++++ 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 5357dfbe4a..fb80aa426b 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -6386,11 +6386,10 @@ module.exports = (_ => { } }; - InternalComponents.LibraryComponents.SettingsPanelInner = reactInitialized && class BDFDB_SettingsPanelInner extends LibraryModules.React.Component { + InternalComponents.LibraryComponents.SettingsPanelList = InternalComponents.LibraryComponents.SettingsPanelInner = reactInitialized && class BDFDB_SettingsPanelInner extends LibraryModules.React.Component { render() { - return this.props.children ? BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex, { - className: this.props.className, - direction: InternalComponents.LibraryComponents.Flex.Direction.VERTICAL, + return this.props.children ? BDFDB.ReactUtils.createElement("div", { + className: BDFDB.DOMUtils.formatClassName(this.props.className, BDFDB.disCN.settingspanellistwrapper, this.props.mini && BDFDB.disCN.settingspanellistwrappermini), children: [ this.props.dividerTop ? BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.FormComponents.FormDivider, { className: this.props.mini ? BDFDB.disCN.marginbottom4 : BDFDB.disCN.marginbottom8 @@ -6400,9 +6399,8 @@ module.exports = (_ => { tag: InternalComponents.LibraryComponents.FormComponents.FormTitle.Tags.H3, children: this.props.title }) : null, - BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex, { + BDFDB.ReactUtils.createElement("div", { className: BDFDB.disCN.settingspanellist, - direction: InternalComponents.LibraryComponents.Flex.Direction.VERTICAL, children: this.props.children }), this.props.dividerBottom ? BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.FormComponents.FormDivider, { diff --git a/Library/_res/BDFDB.data.json b/Library/_res/BDFDB.data.json index ce116207cc..dfabdef526 100644 --- a/Library/_res/BDFDB.data.json +++ b/Library/_res/BDFDB.data.json @@ -577,6 +577,8 @@ "settingsGuildDisabled": "disabled-b2o83O", "settingsPanel": "settingsPanel-w2ySNR", "settingsPanelList": "settingsList-eZjkXj", + "settingsPanelListWrapper": "wrapper-kRsR33", + "settingsPanelListWrapperMini": "mini-2Iug3W", "settingsRow": "settingsRow-o9Ft44", "settingsTableCard": "settingsTableCard-628t52", "settingsTableCardConfigs": "settingsTableCardConfigs-w5X9-Z", @@ -2428,6 +2430,8 @@ "settingsitemthemed": ["Item", "themed"], "settingspanel": ["BDFDB", "settingsPanel"], "settingspanellist": ["BDFDB", "settingsPanelList"], + "settingspanellistwrapper": ["BDFDB", "settingsPanelListWrapper"], + "settingspanellistwrappermini": ["BDFDB", "settingsPanelListWrapperMini"], "settingsrow": ["SettingsItems", "container"], "settingsrowcontainer": ["BDFDB", "settingsRow"], "settingsrowcontrol": ["SettingsItems", "control"], diff --git a/Library/_res/BDFDB.raw.css b/Library/_res/BDFDB.raw.css index 791ba2554a..fa1bfb3bfb 100644 --- a/Library/_res/BDFDB.raw.css +++ b/Library/_res/BDFDB.raw.css @@ -37,9 +37,18 @@ img:not([src]), img[src=""], img[src="null"] { to {opacity: 0.1;} } +[REPLACE_CLASS_settingspanellistwrapper] { + margin-bottom: 8px; +} +[REPLACE_CLASS_settingspanellistwrapper][REPLACE_CLASS_settingspanellistwrappermini] { + margin-bottom: 4px; +} [REPLACE_CLASS_settingspanellist] { padding-left: 15px; } +[REPLACE_CLASS_settingspanellistwrapper][REPLACE_CLASS_settingspanellistwrappermini] [REPLACE_CLASS_settingspanellist] { + padding-left: 10px; +} [REPLACE_CLASS_settingsrowcontainer][REPLACE_CLASS_marginreset] { margin-bottom: 0;