Fix diff line prefixes in side-by-side view

This commit is contained in:
Sergio Padrino 2023-09-25 19:30:24 +02:00
parent 7517283d5d
commit 4d434f78e4

View file

@ -277,12 +277,12 @@ export class SideBySideDiffRow extends React.Component<
>
<div className={beforeClasses}>
{this.renderLineNumber(lineNumber, DiffColumn.Before, isSelected)}
{this.renderContent(row.data)}
{this.renderContent(row.data, DiffRowPrefix.Deleted)}
{this.renderWhitespaceHintPopover(DiffColumn.Before)}
</div>
<div className={afterClasses}>
{this.renderLineNumber(undefined, DiffColumn.After)}
{this.renderContentFromString('', [], DiffRowPrefix.Deleted)}
{this.renderContentFromString('', [])}
{this.renderWhitespaceHintPopover(DiffColumn.After)}
</div>
{this.renderHunkHandle()}