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

Commit

Permalink
Merge pull request #1962 from luixxiul/braverypanel-design
Browse files Browse the repository at this point in the history
align .switchcontrol
  • Loading branch information
diracdeltas committed May 28, 2016
2 parents 3674390 + 6f7e7ad commit f3f4a12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/components/switchControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class SwitchControl extends ImmutableComponent {
{
this.props.rightl10nId && this.props.topl10nId
? <div className='switchControlText'><div className='switchControlRightText'><div className='switchSpacer'>&nbsp;</div><span className='switchControlRightText' data-l10n-id={this.props.rightl10nId} /></div></div>
: <span>
: <span className='switchControlRight'>
{this.props.rightl10nId
? <span className='switchControlRightText' data-l10n-id={this.props.rightl10nId} />
: null}
Expand Down
9 changes: 7 additions & 2 deletions less/switchControls.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

.switchControl {
display: flex;
align-items: center;
padding: 5px;

&.disabled {
Expand Down Expand Up @@ -43,8 +44,12 @@
margin: auto 5px auto 0;
}

.switchControlRightText {
margin: auto 0 auto 5px;
.switchControlRight {
display: flex;

.switchControlRightText {
margin: auto 0 auto 5px;
}
}

.switchControlTopText {
Expand Down

0 comments on commit f3f4a12

Please sign in to comment.