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

[Bug]: Diff panel hides the current branch name and the arrow overlaps the base ref when the panel is narrow

Aperta Adatta ai principianti
#19,048 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ScottN-PV ci sta già lavorando.

Dal 13/10/2026.

  • #19089 di @ScottN-PV — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia da apps/web/src/components/DiffPanel.tsx, dove il ref head e la freccia si trovano dentro un trigger del tooltip con min-w-0, e verifica se quel wrapper può ridursi a larghezza zero. Riproduci restringendo il pannello Diff destro con un contatore +N −N ampio, quindi conferma che lo span truncate e la freccia shrink-0 si comportano come descritto nell'issue. Completato quando il nome del branch viene troncato con un'ellissi e la freccia non si sovrappone più al pulsante del ref base.

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

Descrizione

accepted bug via-triage
Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/web

Steps to reproduce
  1. Open a thread whose branch has a large diff against its base, so the +N −N count is wide (mine showed +134k −104).
  2. Open the right Diff panel with the Changes scope, comparing against origin/main.
  3. Keep the right panel fairly narrow.
Expected behavior

The toolbar reads main → origin/main. If space runs out, the branch name truncates with an ellipsis (ma… → origin/main).

Actual behavior

The current branch name disappears completely, and the arrow is drawn on top of the first letter of the base ref. The toolbar shows →origin/main with the arrow overlapping the "o".

Impact

Cosmetic issue

Version or commit

Desktop nightly; server 0.0.46-nightly.20261013.3053

Environment

macOS desktop app connected to a T3 Code server running on Linux

Logs or stack traces
Not a crash, no logs.

Possible cause, from reading the code (not tested): in apps/web/src/components/DiffPanel.tsx
the head ref and arrow sit inside a `min-w-0` tooltip trigger. When the row runs out of room,
that wrapper can shrink to zero width, so the head ref's `truncate` span collapses to nothing
and the `shrink-0` arrow overflows onto the base-ref button.
Screenshots, recordings, or supporting files
Image
Workaround

None verified.

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
6h 23m
PR unite (30g)
203

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 pingdotgg/t3code

Tutte le issue di pingdotgg/t3code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.