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

Commit

Permalink
rearrange bravery panel layout
Browse files Browse the repository at this point in the history
  • Loading branch information
diracdeltas committed Aug 15, 2017
1 parent c7e5c8c commit ce3a8ae
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions app/renderer/components/main/braveryPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ class BraveryPanel extends React.Component {
</div>

<SwitchControl className={css(
!this.props.isCompactBraveryPanel && gridStyles.row3col1,
!this.props.isCompactBraveryPanel && gridStyles.row5col1,
this.props.isCompactBraveryPanel && gridStyles.row7col1,
this.props.isCompactBraveryPanel && styles.braveryPanel_compact__body__advanced__control__switchControl
)}
Expand All @@ -526,7 +526,7 @@ class BraveryPanel extends React.Component {
/>

<SwitchControl className={css(
!this.props.isCompactBraveryPanel && gridStyles.row4col1,
!this.props.isCompactBraveryPanel && gridStyles.row6col1,
this.props.isCompactBraveryPanel && gridStyles.row8col1,
this.props.isCompactBraveryPanel && styles.braveryPanel_compact__body__advanced__control__switchControl
)}
Expand Down Expand Up @@ -560,7 +560,7 @@ class BraveryPanel extends React.Component {

<div className={css(
!this.props.shieldsUp && styles.braveryPanel__body__advanced__control__forms__title_disabled,
!this.props.isCompactBraveryPanel && gridStyles.row3col2,
!this.props.isCompactBraveryPanel && gridStyles.row3col1,
this.props.isCompactBraveryPanel && gridStyles.row5col1,
styles.braveryPanel__body__advanced__control__fpWrapper,
styles.braveryPanel__body__advanced__control__forms__title
Expand All @@ -574,7 +574,7 @@ class BraveryPanel extends React.Component {

<div className={css(
!this.props.shieldsUp && styles.braveryPanel__body__advanced__control__forms__dropdown_disabled,
!this.props.isCompactBraveryPanel && gridStyles.row4col2,
!this.props.isCompactBraveryPanel && gridStyles.row4col1,
!this.props.isCompactBraveryPanel && styles.braveryPanel__body__advanced__control__forms__dropdown,
this.props.isCompactBraveryPanel && gridStyles.row6col1,
this.props.isCompactBraveryPanel && styles.braveryPanel_compact__body__advanced__control__forms__dropdown
Expand All @@ -591,7 +591,7 @@ class BraveryPanel extends React.Component {
</div>

<SwitchControl className={css(
!this.props.isCompactBraveryPanel && gridStyles.row5col1,
!this.props.isCompactBraveryPanel && gridStyles.row5col2,
this.props.isCompactBraveryPanel && gridStyles.row9col1,
this.props.isCompactBraveryPanel && styles.braveryPanel_compact__body__advanced__control__switchControl
)}
Expand Down Expand Up @@ -700,6 +700,10 @@ const gridStyles = StyleSheet.create({
gridRow: 5,
gridColumn: 1
},
row5col2: {
gridRow: 5,
gridColumn: 2
},
row6col1: {
gridRow: 6,
gridColumn: 1
Expand Down

0 comments on commit ce3a8ae

Please sign in to comment.