[Bug]: Chat text shows in the empty gap below the composer

Aperta Adatta ai principianti
#39,110 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia dagli stili della timeline della chat e del composer in apps/web; l’issue indica una correzione CSS pronta che interessa due file nel fork di chi ha segnalato il problema. Leggi gli stili dello spacer e dello scroller, poi confronta il comportamento di clipping proposto e il compromesso relativo all’hit testing. Il lavoro è terminato quando, scorrendo i messaggi, il testo non viene più disegnato nello spazio sotto il composer, mentre gli sfondi previsti e l’effetto vetro del composer restano intatti.

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

Descrizione

bug needs-triage

Hi! This is my first issue here. First, I'm really loving the app! But the text below the chat box really irks me. I first thought about making a PR, but since this is not clearly a bug, as it could be a design choice given the current maintainer's position, I settled on an Issue. For me personally, it's not pretty and also not very useful (the text lacks its context).

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 enough messages to scroll. Leave "Keep composer context visible" off (the default).
  2. Scroll up until a message passes under the composer.
  3. Look at the gap between the bottom of the composer card and the bottom of the window.
Expected behavior

The gap below the card stays empty, as it does when nothing is behind it.

Actual behavior

Message text renders in that gap, detached from the card and the conversation.

Desktop app: message text below the composer

Before: message text below the composer. After (proposed fix): the gap stays empty

This is not about the glass behind the card (#13955, #22227), only the empty spacer under it.

#34846 fixed this under the context row (#27512) but kept the spacer transparent: "it matches the setting-off behavior and covers no labels." With the setting off (the default), the spacer is all there is under the card.

Related: #30048 (closed as a duplicate of #27512), #29975 and #30064 (closed unmerged). Not #12937, which was a seam inside the composer.

Impact

Cosmetic issue

Version or commit

main at 475ae52.

Environment

Linux. Seen in the T3 Code desktop app and reproduced in the web dev client (Chromium) with a synthetic project and a Replay (dev) thread. Same in light, dark and a theme with a conversation background.

Logs or stack traces

Screenshots, recordings, or supporting files

Before and after in dark, light and a theme with a conversation background

Before and after at 1920×1080, 1440×900, 1024×768 and 768×1024

A possible fix is ready on my fork (2 files, CSS only): https://github.com/j6e/t3code/compare/main...fix/composer-bottom-gap

  • The spacer's height moves into one variable, --chat-composer-spacer-height. The timeline scroller is clipped by that height, so it never paints in the gap. Nothing is painted over it, so any theme background shows through, and the glass behind the card is unchanged.
  • Optional refinement on the same branch: the clip also rises by the card's corner radius (--radius-2xl). Cut exactly at the gap, a glyph sliced at that edge leaves a speck on the rounded corner; the cost is that the lowest 16px of glass have nothing behind them to blur. It can be dropped if you'd rather keep the glass fully untouched.
  • Known trade-off: clip-path also clips hit-testing, so the mouse wheel does nothing in that bottom strip beside the composer. Under the composer the wheel never scrolled the timeline anyway.

If this is worth fixing, I can open it as a PR with the full verification.

Workaround

None found. Glass opacity at 100% makes the card opaque, but the text in the gap stays (capture).

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
4h 46m
PR unite (30g)
488

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.