[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 摘要。