This commit is contained in:
Mirco Wittrien 2020-12-15 10:26:20 +01:00
parent abb33e45ed
commit 9f64a626d2
3 changed files with 17 additions and 6 deletions

View File

@ -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, {

View File

@ -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"],

View File

@ -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;