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

Aberta Para iniciantes
#39,110 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
66/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
css, typescript
Domínio
frontend

Direção de pesquisa

Comece pelos estilos da linha do tempo do chat e do composer em apps/web; a issue aponta uma correção CSS pronta em dois arquivos no fork de quem relatou o problema. Leia os estilos do spacer e do scroller e, em seguida, compare o comportamento de recorte proposto e sua contrapartida na detecção de interações. O trabalho estará concluído quando, ao rolar as mensagens, nenhum texto for mais desenhado no espaço abaixo do composer, enquanto os planos de fundo esperados e o efeito de vidro do composer permanecem intactos.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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).

Linguagem predominante
TypeScript
Estrelas
24.8k
Forks
6.4k
Merge médio
4h 46min
PRs com merge (30d)
488

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de pingdotgg/t3code

Todas as issues de pingdotgg/t3code

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.