mirror of
https://github.com/desktop/desktop
synced 2024-10-01 05:43:50 +00:00
Merge pull request #14470 from desktop/fix-long-list-conflicts
Make long lists of files scrollable within dialogs
This commit is contained in:
commit
24db7e1f22
|
@ -137,13 +137,15 @@ export class DiscardChanges extends React.Component<
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<p>Are you sure you want to discard all changes to:</p>
|
<p>Are you sure you want to discard all changes to:</p>
|
||||||
<ul>
|
<div className="file-list">
|
||||||
{this.props.files.map(p => (
|
<ul>
|
||||||
<li key={p.id}>
|
{this.props.files.map(p => (
|
||||||
<PathText path={p.path} />
|
<li key={p.id}>
|
||||||
</li>
|
<PathText path={p.path} />
|
||||||
))}
|
</li>
|
||||||
</ul>
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,17 @@
|
||||||
#discard-changes {
|
#discard-changes {
|
||||||
.dialog-content ul {
|
.dialog-content .file-list {
|
||||||
list-style: none;
|
max-height: 175px;
|
||||||
margin: var(--spacing) 0;
|
overflow-y: auto;
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
li {
|
ul {
|
||||||
padding-left: 0;
|
list-style: none;
|
||||||
margin-bottom: 0;
|
margin: var(--spacing) 0;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
li {
|
||||||
|
padding-left: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,19 @@
|
||||||
#commit-conflict-markers-warning {
|
#commit-conflict-markers-warning {
|
||||||
.dialog-content ul {
|
.dialog-content .conflicted-files-text {
|
||||||
list-style: none;
|
max-height: 175px;
|
||||||
margin: 0;
|
overflow-y: auto;
|
||||||
padding: 0;
|
|
||||||
margin-bottom: var(--spacing);
|
|
||||||
|
|
||||||
li {
|
ul {
|
||||||
padding-left: 0;
|
list-style: none;
|
||||||
margin-bottom: 0;
|
margin: 0;
|
||||||
font-family: var(--font-family-monospace);
|
padding: 0;
|
||||||
|
margin-bottom: var(--spacing);
|
||||||
|
|
||||||
|
li {
|
||||||
|
padding-left: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-family: var(--font-family-monospace);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue