Skip to content

bug: Git diff view misaligns changed lines due to +/- icons taking horizontal space #216

Description

@JKGeovision

Hello,

I've discovered an indentation inconsistency in the git diff view where changed lines (prefixed with + or - icons) are shifted further to the right compared to unchanged lines.

The + / - change icons take up horizontal space, which pushes the actual line content farther right than lines without those icons. This creates a visually uneven indentation across the diff, making it harder to read and compare changes cleanly.

Steps to reproduce:

  1. Open a file in the editor that has uncommitted changes (i.e., a file with additions and/or deletions).
  2. Open the git diff view for that file.
  3. Observe the alignment of the lines - changed lines (showing + or - icons) will be indented further to the right than unchanged lines that don't display those icons.

Expected behavior:

All lines in the diff view should share consistent horizontal alignment, regardless of whether they're changed or unchanged. The + / - icons should not affect the indentation of the line content.

Thank you for your time!
Joshua Krimmer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions