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

Commit

Permalink
Add new line in settings label (#7451)
Browse files Browse the repository at this point in the history
  • Loading branch information
toger5 committed Jan 4, 2022
1 parent b6c2b5c commit f4a94f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion res/css/views/elements/_SettingsFlag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
.mx_SettingsFlag {
display: flex;
flex-direction: row;
align-items: center;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 4px;

Expand All @@ -33,6 +33,7 @@ limitations under the License.
font-size: $font-14px;
color: $primary-content;
padding-right: 10px;
padding-top: 4px;
}

.mx_SettingsFlag_microcopy {
Expand Down
4 changes: 2 additions & 2 deletions src/components/views/elements/SettingsFlag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ export default class SettingsFlag extends React.Component<IProps, IState> {
<div className="mx_SettingsFlag">
<label className="mx_SettingsFlag_label">
<span className="mx_SettingsFlag_labelText">{ label }</span>
{ description && <span className="mx_SettingsFlag_microcopy">
{ description && <div className="mx_SettingsFlag_microcopy">
{ description }
</span> }
</div> }
</label>
<ToggleSwitch
checked={this.state.value}
Expand Down

0 comments on commit f4a94f6

Please sign in to comment.