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

Abierto Apto para principiantes
#39,144 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
72/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
react, typescript
Área
frontend

Línea de trabajo

Empieza en el área apps/web y sigue la fila del título de la PR y los estilos de hover en el panel de detalles del hilo. Céntrate en cómo se comporta el relleno vertical cuando el título ocupa varias líneas. Compara un título de dos líneas con uno corto de una sola línea al ancho del panel. La tarea estará terminada cuando los títulos que ocupen varias líneas tengan el mismo espacio libre arriba y abajo, y el espaciado de los títulos de una sola línea permanezca sin cambios.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
24.8k
Forks
6.4k
Merge medio
4 h 46 min
PR fusionados (30 d)
488

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pingdotgg/t3code

Todos los issues de pingdotgg/t3code

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.