[Bug]: Tab close X is on the left on Windows; should be on the right where window controls are on the right

未关闭 适合新手
#44,592 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
electron, typescript
领域
desktop, frontend

调研方向

标签页关闭按钮的位置属于侧边栏标签条中的渲染决定,因此请先找到绘制关闭 X 的标签组件,以及窗口控件已有的平台判断位于何处(issue 中的引用指向 #15437 的分诊内容)。在 Windows 或 Linux 上运行应用,确认关闭按钮移到每个标签的右边缘,而 macOS 保持左侧位置。当每个带有关闭按钮的标签条都遵循这一平台规则时即完成。

由索引模型根据 Issue 内容生成。

描述

What

On Windows, the close X on tabs (e.g. open files in the side panel) sits on the left side of the tab. That's the macOS convention. On Windows (and Linux desktops where the window controls are on the right), tab close buttons are conventionally on the right side of the tab, as in browsers, VS Code and most editors.

Steps:

  1. Run T3 Code on Windows.
  2. Open a file so it appears as a tab in the side panel.
  3. The tab's close X is on the left of the tab label.
image

Expected

On platforms where the window controls are on the right (Windows, most Linux setups), tab close buttons should be on the right side of the tab. macOS can keep the left placement.

Notes

  • The app already treats Windows/Linux as a separate layout case for the window controls (hidden title bar with the overlay drawn top-right; see the triage on #15437), so the platform check likely already exists to drive this.
  • Applies to every tab strip with a close button, not only file tabs.
主要语言
TypeScript
星标
24.8k
派生
6.4k
平均合并
59 分钟
30 天内合并 PR
613

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pingdotgg/t3code 的其他 Issue

查看 pingdotgg/t3code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。