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}> <div className={beforeClasses}>
{this.renderLineNumber(lineNumber, DiffColumn.Before, isSelected)} {this.renderLineNumber(lineNumber, DiffColumn.Before, isSelected)}
{this.renderContent(row.data)} {this.renderContent(row.data, DiffRowPrefix.Deleted)}
{this.renderWhitespaceHintPopover(DiffColumn.Before)} {this.renderWhitespaceHintPopover(DiffColumn.Before)}
</div> </div>
<div className={afterClasses}> <div className={afterClasses}>
{this.renderLineNumber(undefined, DiffColumn.After)} {this.renderLineNumber(undefined, DiffColumn.After)}
{this.renderContentFromString('', [], DiffRowPrefix.Deleted)} {this.renderContentFromString('', [])}
{this.renderWhitespaceHintPopover(DiffColumn.After)} {this.renderWhitespaceHintPopover(DiffColumn.After)}
</div> </div>
{this.renderHunkHandle()} {this.renderHunkHandle()}