Skip to content

Commit 55e1b2b

Browse files
committed
Improve designs
1 parent 3aaa8c6 commit 55e1b2b

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

scripts/components/App.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ export default class App extends React.Component {
8787
}
8888

8989
stopPropagation(e) {
90-
console.log(e.target.value);
9190
e.preventDefault();
9291
e.stopPropagation();
9392
}
@@ -129,28 +128,31 @@ export default class App extends React.Component {
129128
onSelect={this.selectBranch}
130129
style={{ marginBottom: '10px' }}
131130
>
131+
<li><div id="branch-control-title">Switch branches</div></li>
132132
<MenuItem key={App.allBranchName} eventKey={App.allBranchName}>
133133
{App.allBranchName}
134134
</MenuItem>
135135
<MenuItem key={App.defaultBranchName} eventKey={App.defaultBranchName}>
136136
{App.defaultBranchName}
137137
</MenuItem>
138-
<MenuItem>
138+
<li>
139139
<div style={{ display: 'flex', alignItems: 'center' }}>
140140
<FormControl
141+
id="branch-control-input"
141142
type="text" placeholder="Find branch..."
142143
style={{ width: '90%' }}
144+
className="input-sm dropdown-filter-input"
143145
value={this.state.filter}
144146
onClick={this.stopPropagation}
147+
onSelect={this.stopPropagation}
145148
onChange={this.changeFilter}
146149
/>
147150
<i
148-
className="octicon octicon-x" style={{ display: 'flex' }}
151+
className="octicon octicon-x" style={{ display: 'flex', cursor: 'pointer' }}
149152
onClick={this.clearFilter}
150153
/>
151154
</div>
152-
</MenuItem>
153-
<MenuItem divider />
155+
</li>
154156
{this.state.branches.filter(({ visible }) => visible).map(({ branch }) =>
155157
<MenuItem key={branch} eventKey={branch}>{branch}</MenuItem>
156158
)}
@@ -163,6 +165,12 @@ export default class App extends React.Component {
163165
onSelect={this.selectCount}
164166
style={{ margin: '0 0 10px 10px' }}
165167
>
168+
<li>
169+
<div
170+
id="branch-control-title"
171+
style={{ whiteSpace: 'nowrap' }}
172+
>Switch num of commits</div>
173+
</li>
166174
{[100, 500, 1000].map(count =>
167175
<MenuItem key={count} eventKey={count}>{count}</MenuItem>
168176
)}

0 commit comments

Comments
 (0)