Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 3bc1ad6

Browse files
authored
Merge pull request #211 from atom/sm-fix-list-scrolling
Fix list scrolling
2 parents 8593de9 + a175b6a commit 3bc1ad6

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

lib/views/staging-view.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export default class StagingView {
189189
<span className={'git-FilePatchListView-icon icon icon-alert status-modified'} />
190190
</header>
191191
<ListView
192-
className='git-FilePatchListView'
192+
className='git-StagingView-list git-FilePatchListView'
193193
ref='mergeConflictListView'
194194
didConfirmItem={this.stageFilePatch}
195195
items={this.multiListCollection.getItemsForKey(ListTypes.CONFLICTS)}
@@ -206,7 +206,7 @@ export default class StagingView {
206206
onmousedown={() => this.selectList(ListTypes.UNSTAGED)} >
207207
<header className='git-StagingView-header'>Unstaged Changes</header>
208208
<ListView
209-
className='git-FilePatchListView'
209+
className='git-StagingView-list git-FilePatchListView'
210210
ref='unstagedChangesView'
211211
didConfirmItem={this.stageFilePatch}
212212
items={this.multiListCollection.getItemsForKey(ListTypes.UNSTAGED)}
@@ -219,7 +219,7 @@ export default class StagingView {
219219
onmousedown={() => this.selectList(ListTypes.STAGED)} >
220220
<header className='git-StagingView-header'>Staged Changes</header>
221221
<ListView
222-
className='git-FilePatchListView'
222+
className='git-StagingView-list git-FilePatchListView'
223223
ref='stagedChangesView'
224224
didConfirmItem={this.unstageFilePatch}
225225
items={this.multiListCollection.getItemsForKey(ListTypes.STAGED)}

styles/staging-view.less

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
.git-StagingView {
44
flex: 1;
5-
overflow-y: auto;
65
display: flex;
76
flex-direction: column;
87

98
&-group {
109
flex: 1;
10+
display: flex;
11+
flex-direction: column;
1112
}
1213

1314
&-header {
@@ -22,4 +23,9 @@
2223
font-weight:bold;
2324
box-shadow:inset @separator-border-color 0 -1px 0, inset @separator-border-color 0 1px 0;
2425
}
26+
27+
&-list {
28+
flex: 1 1 0;
29+
overflow-x: auto;
30+
}
2531
}

0 commit comments

Comments
 (0)