mirror of
https://github.com/desktop/desktop
synced 2024-10-30 06:03:10 +00:00
Give some room for check marks on split diff
This commit is contained in:
parent
dc71c8bca8
commit
022f6e17c1
1 changed files with 4 additions and 2 deletions
|
@ -420,8 +420,10 @@ export class SideBySideDiffRow extends React.Component<
|
|||
* for side-by-side diffs the gutter contains the line number of only one side.
|
||||
*/
|
||||
private get lineGutterWidth() {
|
||||
const { showSideBySideDiff, lineNumberWidth } = this.props
|
||||
return showSideBySideDiff ? lineNumberWidth : lineNumberWidth * 2
|
||||
const { showSideBySideDiff, lineNumberWidth, isDiffSelectable } = this.props
|
||||
return showSideBySideDiff
|
||||
? lineNumberWidth + (isDiffSelectable ? 10 : 0)
|
||||
: lineNumberWidth * 2
|
||||
}
|
||||
|
||||
private renderHunkExpansionHandle(
|
||||
|
|
Loading…
Reference in a new issue