[Bug]: Diff panel hides the current branch name and the arrow overlaps the base ref when the panel is narrow
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- frontend
调研方向
从 apps/web/src/components/DiffPanel.tsx 开始,head ref 和箭头位于带有 min-w-0 的 tooltip 触发器内,检查该包装器是否会收缩到零宽度。通过用较宽的 +N −N 计数收窄右侧 Diff 面板来复现,然后确认 truncate 的 span 和 shrink-0 的箭头表现与 issue 描述一致。完成标准:分支名以省略号截断,且箭头不再与 base ref 按钮重叠。
由索引模型根据 Issue 内容生成。
描述
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
- Open a thread whose branch has a large diff against its base, so the
+N −Ncount is wide (mine showed+134k −104). - Open the right Diff panel with the Changes scope, comparing against
origin/main. - Keep the right panel fairly narrow.
Expected behavior
The toolbar reads main → origin/main. If space runs out, the branch name truncates with an ellipsis (ma… → origin/main).
Actual behavior
The current branch name disappears completely, and the arrow is drawn on top of the first letter of the base ref. The toolbar shows →origin/main with the arrow overlapping the "o".
Impact
Cosmetic issue
Version or commit
Desktop nightly; server 0.0.46-nightly.20261013.3053
Environment
macOS desktop app connected to a T3 Code server running on Linux
Logs or stack traces
Not a crash, no logs.
Possible cause, from reading the code (not tested): in apps/web/src/components/DiffPanel.tsx
the head ref and arrow sit inside a `min-w-0` tooltip trigger. When the row runs out of room,
that wrapper can shrink to zero width, so the head ref's `truncate` span collapses to nothing
and the `shrink-0` arrow overflows onto the base-ref button.
Screenshots, recordings, or supporting files
Workaround
None verified.
- 主要语言
- TypeScript
- 星标
- 24.8k
- 派生
- 6.4k
- 平均合并
- 5 小时 30 分钟
- 30 天内合并 PR
- 215
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
[Bug] Windows repository cloning fails while creating an existing drive root可能已有人在做 @pujitha24 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
[Bug]: iOS still shows "Failed to connect. Retrying" on every resume (follow-up to #5695)可能已有人在做 @otavio 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
[Bug]: Server git tests sign fixture commits with the developer's key when run from the repo root可能已有人在做 @Mnigos 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
high priority
难度 2/5 1-3 小时 新手友好度 62/100
CI-CMG/deep-sea-corals-exb#84 · 1 条评论 ·
-
Create/import wallet form shows raw "password must be at least 1 characters" instead of the translated message可能已有人在做 @CapThunder19 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 82/100
joinmarket-webui/jam#1538 ·
维护者通常 1 天内回复
-
t0ggles
难度 2/5 1-3 小时 新手友好度 70/100
nolimits4web/swiper#8240 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复