bug: Git diff view misaligns changed lines due to +/- icons taking horizontal space
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 64/100
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.
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
- Dominant language
- Python
- Stars
- 620
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
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.
More from open-webui/computer
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
open-webui/computer#293 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
open-webui/computer#286 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
open-webui/computer#276 · 1 comment · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
open-webui/computer#271 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
open-webui/computer#269 · 1 comment ·
All issues in open-webui/computer
Similar issues
-
namespace operations
Difficulty 1/5 Under an hour Newbie friendliness 72/100
EclipseFdn/open-vsx.org#13737 ·
Maintainers usually reply within 1 day
-
Zero-token evaluations are treated as missing cost in selectionPossibly taken @sylvesterkaczmarek claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
google-research/rrsi#6 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
aws-samples/sample-aws-genai-db-modernizer#294 ·
Maintainers usually reply within 1 day
-
feedback simulation workshop
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
githubnext/gh-aw-workshop#4174 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
WingedGuardian/GENesis-AGI#2852 ·
Maintainers usually reply within 1 day