Skip to content

Commit dcb3169

Browse files
committed
Align the buttons correctly.
1 parent a8c69bb commit dcb3169

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

src/components/pages/index.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,20 @@ class Pages extends Component {
5656
<h1 className="pages__page-title">
5757
{ page.heading }
5858
</h1>
59-
{ activePage === 0 &&
60-
<IconButton
61-
className="pages__page-patching-button"
62-
onClick={ () => this.setActivePage( 3 ) }
63-
icon="editor-code"
64-
label="Apply and upload patches"
59+
<div className="pages__page-button-group">
60+
{ activePage === 0 &&
61+
<IconButton
62+
className="pages__page-patching-button"
63+
onClick={ () => this.setActivePage( 3 ) }
64+
icon="editor-code"
65+
label="Apply and upload patches"
66+
/>
67+
}
68+
<PreferencesButton
69+
activePage={ activePage }
70+
setActivePage={ this.setActivePage }
6571
/>
66-
}
67-
<PreferencesButton
68-
activePage={ activePage }
69-
setActivePage={ this.setActivePage }
70-
/>
72+
</div>
7173
</header>
7274
{ page.panel }
7375
</div>

src/components/pages/style.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@
9999
margin: 0 0 0 5px;
100100
}
101101

102-
.pages__page-patching-button {
102+
.pages__page-button-group {
103103
margin-left: auto;
104+
display: inline-flex;
104105
}
105106
}

0 commit comments

Comments
 (0)