Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit eda4178

Browse files
committed
Add margins between labs sections
1 parent 6c69f3e commit eda4178

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

res/css/views/settings/tabs/user/_LabsUserSettingsTab.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ limitations under the License.
1515
*/
1616

1717
.mx_LabsUserSettingsTab {
18-
.mx_SettingsTab_section {
19-
margin-top: 32px;
18+
.mx_SettingsTab_subsectionText, .mx_SettingsTab_section {
19+
margin-bottom: 30px;
20+
}
2021

21-
.mx_SettingsFlag {
22-
margin-right: 0; // remove right margin to align with beta cards
23-
display: flex;
24-
align-items: center;
25-
justify-content: space-between;
22+
.mx_SettingsTab_section .mx_SettingsFlag {
23+
margin-right: 0; // remove right margin to align with beta cards
24+
display: flex;
25+
align-items: center;
26+
justify-content: space-between;
2627

27-
.mx_ToggleSwitch {
28-
float: unset;
29-
}
28+
.mx_ToggleSwitch {
29+
float: unset;
3030
}
3131
}
3232
}

src/components/views/settings/tabs/user/LabsUserSettingsTab.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default class LabsUserSettingsTab extends React.Component<{}, IState> {
8585
</div>;
8686
}
8787

88-
let labsSection;
88+
let labsSections;
8989
if (SdkConfig.get("show_labs_settings")) {
9090
const groups = new EnhancedMap<LabGroup, JSX.Element[]>();
9191
labs.forEach(f => {
@@ -143,14 +143,14 @@ export default class LabsUserSettingsTab extends React.Component<{}, IState> {
143143
);
144144
}
145145

146-
labsSection = <div className="mx_SettingsTab_section">
146+
labsSections = <>
147147
{ sortBy(Array.from(groups.entries()), "0").map(([group, flags]) => (
148-
<div key={group}>
148+
<div className="mx_SettingsTab_section" key={group}>
149149
<span className="mx_SettingsTab_subheading">{ _t(labGroupNames[group]) }</span>
150150
{ flags }
151151
</div>
152152
)) }
153-
</div>;
153+
</>;
154154
}
155155

156156
return (
@@ -172,7 +172,7 @@ export default class LabsUserSettingsTab extends React.Component<{}, IState> {
172172
}
173173
</div>
174174
{ betaSection }
175-
{ labsSection }
175+
{ labsSections }
176176
</div>
177177
);
178178
}

0 commit comments

Comments
 (0)