Update extra width for both diffs

This commit is contained in:
tidy-dev 2024-01-31 12:48:35 -05:00
parent 82fb6dbc3c
commit 3b0613a955

View file

@ -422,9 +422,10 @@ export class SideBySideDiffRow extends React.Component<
*/
private get lineGutterWidth() {
const { showSideBySideDiff, lineNumberWidth, isDiffSelectable } = this.props
return showSideBySideDiff
? lineNumberWidth + (isDiffSelectable ? 10 : 0)
: lineNumberWidth * 2
return (
(showSideBySideDiff ? lineNumberWidth : lineNumberWidth * 2) +
(isDiffSelectable ? 14 : 0)
)
}
private renderHunkExpansionHandle(