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

オープン 初心者向け
#39,144 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

apps/web 領域から始めて、スレッド詳細パネルの PR タイトル行とホバー時のスタイルをたどってください。タイトルが折り返されたときに、上下のパディングがどうなるかに注目します。パネル幅で、2 行のタイトルと短い 1 行のタイトルを比較してください。折り返されたタイトルの上下の余白が均等になり、1 行のタイトルの間隔は変わらなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
24.8k
フォーク
6.4k
平均マージ
4時間 46分
マージ済み PR(30日)
488

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pingdotgg/t3code のほかの issue

pingdotgg/t3code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。