Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#216 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
64/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
frontend

Direzione di ricerca

Non viene indicato alcun file o test; inizia individuando l’implementazione della vista git diff e verificando come le righe modificate e non modificate rendono le loro icone +/-. Riproduci il problema con un file contenente aggiunte o eliminazioni, quindi verifica che il contenuto abbia un allineamento orizzontale coerente per ogni riga.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
620
Fork
85
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di open-webui/computer

Tutte le issue di open-webui/computer

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.