[Bug]: Wrapped PR titles lose bottom padding in the thread details panel

Offen Anfängerfreundlich
#39,144 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
72/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
react, typescript
Bereich
frontend

Rechercherichtung

Beginne im Bereich apps/web und verfolge die PR-Titelzeile und die Hover-Stile im Thread-Detailbereich. Achte dabei darauf, wie sich die vertikale Polsterung verhält, wenn ein Titel umbrochen wird. Vergleiche einen zweizeiligen Titel mit einem kurzen einzeiligen Titel bei der Breite des Bereichs. Fertig ist die Aufgabe, wenn umbrochene Titel oben und unten gleichmäßig Abstand haben und der Abstand bei einzeiligen Titeln unverändert bleibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug needs-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 with a linked, open pull request that has a visible Merge action in the thread details panel.
  2. Use a PR title long enough to wrap to two lines at the current panel width. For example: fix(web): preserve the selected thread when switching projects.
  3. Hover the PR title.
  4. Observe the space above the first line and below the second line.
  5. Compare with a short, single-line title.
Expected behavior

Wrapped PR titles should retain balanced vertical spacing inside their hover background, with adequate breathing room below the second line.

Actual behavior

The wrapped title has noticeably more space above the text than below it. The second line sits close to the bottom edge of the hover background.

Below I included 6 screenshots that I personally tried to reproduce.
before refers to 058eea9246ff, the parent commit before #36528. After refers to 0516493a914c, the commit that landed #36528. Main refers to 2a411317d9b7, the origin/main revision tested.
I used short PR titles that fit in one line and longer titles that wraps.

before:
before-single

before-double

after:

after-single after-double

main:

main-single main-double

Measurements in CSS px, using the same wrapped title and capture settings.
Clearance is measured from the text line box to the control's border box.

Before #36528: 058eea9246ff
Top clearance: 7.75
Bottom clearance: 7.75

After #36528: 0516493a914c
Top clearance: 7.75
Bottom clearance: 1

Main: 2a411317d9b7
Top clearance: 7.75
Bottom clearance: 1

Single-line control: bottom clearance remains 8 px in all three revisions.

I suggest maintainer(s) or their agents try to reproduce again in case I am wrong.

Impact

Cosmetic issue

Version or commit

Observed on 0.1.11-nightly.20261119.4928; also reproduced at main commit 2a411317d9b7341547e5acb3e9bceb7e6195c5a2. Padding regression seemingly introduced by 0516493a914c193f548b6201463ba6d5f5ad9f70.

Environment

macOS 27.0.0 arm64, T3 Code Desktop with a local server. Comparison screenshots use isolated Chrome fixtures rendering the actual PR-row component and styles with mocked PR data, a 280 px panel, macOS system font, 18 px interface size, and DPR 2. Font and size are capture settings, not prerequisites for the report.

Logs or stack traces

Screenshots, recordings, or supporting files

before-single.png
after-single.png
before-double.png
after-double.png
main-single.png
main-double.png

Workaround

This is cosmetic issue and does not affect normal usage.

Vorherrschende Sprache
TypeScript
Sterne
24.8k
Forks
6.4k
Ø Merge
4 Std. 46 Min.
Gemergte PRs (30 T.)
488

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus pingdotgg/t3code

Alle Issues in pingdotgg/t3code

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.