Add margins between labs sections (#8169)
parent
4f57a4661d
commit
e02ab66884
|
@ -15,18 +15,18 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
.mx_LabsUserSettingsTab {
|
||||
.mx_SettingsTab_section {
|
||||
margin-top: 32px;
|
||||
.mx_SettingsTab_subsectionText, .mx_SettingsTab_section {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.mx_SettingsFlag {
|
||||
margin-right: 0; // remove right margin to align with beta cards
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
.mx_SettingsTab_section .mx_SettingsFlag {
|
||||
margin-right: 0; // remove right margin to align with beta cards
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
.mx_ToggleSwitch {
|
||||
float: unset;
|
||||
}
|
||||
.mx_ToggleSwitch {
|
||||
float: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ export default class LabsUserSettingsTab extends React.Component<{}, IState> {
|
|||
</div>;
|
||||
}
|
||||
|
||||
let labsSection;
|
||||
let labsSections;
|
||||
if (SdkConfig.get("show_labs_settings")) {
|
||||
const groups = new EnhancedMap<LabGroup, JSX.Element[]>();
|
||||
labs.forEach(f => {
|
||||
|
@ -143,14 +143,14 @@ export default class LabsUserSettingsTab extends React.Component<{}, IState> {
|
|||
);
|
||||
}
|
||||
|
||||
labsSection = <div className="mx_SettingsTab_section">
|
||||
labsSections = <>
|
||||
{ sortBy(Array.from(groups.entries()), "0").map(([group, flags]) => (
|
||||
<div key={group}>
|
||||
<div className="mx_SettingsTab_section" key={group}>
|
||||
<span className="mx_SettingsTab_subheading">{ _t(labGroupNames[group]) }</span>
|
||||
{ flags }
|
||||
</div>
|
||||
)) }
|
||||
</div>;
|
||||
</>;
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -172,7 +172,7 @@ export default class LabsUserSettingsTab extends React.Component<{}, IState> {
|
|||
}
|
||||
</div>
|
||||
{ betaSection }
|
||||
{ labsSection }
|
||||
{ labsSections }
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue