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

Commit f4a94f6

Browse files
authored
Add new line in settings label (#7451)
1 parent b6c2b5c commit f4a94f6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

res/css/views/elements/_SettingsFlag.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
.mx_SettingsFlag {
1818
display: flex;
1919
flex-direction: row;
20-
align-items: center;
20+
align-items: flex-start;
2121
justify-content: space-between;
2222
margin-bottom: 4px;
2323

@@ -33,6 +33,7 @@ limitations under the License.
3333
font-size: $font-14px;
3434
color: $primary-content;
3535
padding-right: 10px;
36+
padding-top: 4px;
3637
}
3738

3839
.mx_SettingsFlag_microcopy {

src/components/views/elements/SettingsFlag.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ export default class SettingsFlag extends React.Component<IProps, IState> {
9696
<div className="mx_SettingsFlag">
9797
<label className="mx_SettingsFlag_label">
9898
<span className="mx_SettingsFlag_labelText">{ label }</span>
99-
{ description && <span className="mx_SettingsFlag_microcopy">
99+
{ description && <div className="mx_SettingsFlag_microcopy">
100100
{ description }
101-
</span> }
101+
</div> }
102102
</label>
103103
<ToggleSwitch
104104
checked={this.state.value}

0 commit comments

Comments
 (0)