Add new line in settings label (#7451)
This commit is contained in:
parent
b6c2b5c995
commit
f4a94f6e7f
2 changed files with 4 additions and 3 deletions
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
.mx_SettingsFlag {
|
.mx_SettingsFlag {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: flex-start;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ limitations under the License.
|
||||||
font-size: $font-14px;
|
font-size: $font-14px;
|
||||||
color: $primary-content;
|
color: $primary-content;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
|
padding-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_SettingsFlag_microcopy {
|
.mx_SettingsFlag_microcopy {
|
||||||
|
|
|
@ -96,9 +96,9 @@ export default class SettingsFlag extends React.Component<IProps, IState> {
|
||||||
<div className="mx_SettingsFlag">
|
<div className="mx_SettingsFlag">
|
||||||
<label className="mx_SettingsFlag_label">
|
<label className="mx_SettingsFlag_label">
|
||||||
<span className="mx_SettingsFlag_labelText">{ label }</span>
|
<span className="mx_SettingsFlag_labelText">{ label }</span>
|
||||||
{ description && <span className="mx_SettingsFlag_microcopy">
|
{ description && <div className="mx_SettingsFlag_microcopy">
|
||||||
{ description }
|
{ description }
|
||||||
</span> }
|
</div> }
|
||||||
</label>
|
</label>
|
||||||
<ToggleSwitch
|
<ToggleSwitch
|
||||||
checked={this.state.value}
|
checked={this.state.value}
|
||||||
|
|
Loading…
Reference in a new issue