open-webui / open-webui/computer
bug: Git diff view misaligns changed lines due to +/- icons taking horizontal space
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 569
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
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:
- Open a file in the editor that has uncommitted changes (i.e., a file with additions and/or deletions).
- Open the git diff view for that file.
- 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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named; start by locating the git diff view implementation and inspecting how changed and unchanged lines render their +/- icons. Reproduce the issue with a file containing additions or deletions, then verify that content has consistent horizontal alignment for every line.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100