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

未關閉 適合新手
#39,110 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
66/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
css, typescript
領域
frontend

研究方向

從 apps/web 中的聊天時間軸和 composer 樣式著手;issue 指出了回報者 fork 上已備妥的雙檔案 CSS 修正方案。閱讀 spacer 和 scroller 樣式,接著比較提議的裁切行為及其命中測試方面的取捨。完成標準是:捲動訊息時,不再有文字繪製到 composer 下方的空隙中,同時預期的背景和 composer 的玻璃效果保持完整。

由索引模型根據 Issue 內容生成。

描述

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

主要語言
TypeScript
星號
24.8k
分支
6.4k
平均合併
4 小時 46 分鐘
30 天內合併 PR
488

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

pingdotgg/t3code 的其他 Issue

查看 pingdotgg/t3code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。