You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Modern UI: close button overlay causes accidental tab closure when clicking the filename #329605
Since the recent Modern UI tab redesign, the close button is rendered on top of the tab label.
For short filenames, hovering over a tab causes the close button to cover part of the visible filename. More importantly, that covered area becomes a clickable close action.
This can cause accidental tab closure when I intend to click the filename to activate the tab.
Example with Locale.hpp:
Steps to Reproduce
Use the Modern UI.
Open a file with a short filename, such as Locale.hpp or .env.
Hover over the right side of the tab label.
Click the part of the filename covered by the close button.
Actual Behavior
A visible part of the tab label becomes a close-button click target on hover, which can accidentally close the tab.
Expected Behavior
The close button should not overlap the effective click area of the visible filename.
Possible fixes could include reserving space for the close button, changing its hit target, or providing an option to disable the overlay behavior.
The same thing is happening for me, where the close button is overlapping with the tab name. It also just makes the file name (or in this case, the git decorator/badge) hard to read.
Activity
frankobjank commentedon Aug 9, 2026
The same thing is happening for me, where the close button is overlapping with the tab name. It also just makes the file name (or in this case, the git decorator/badge) hard to read.
Build details
Version: 1.132.0
Commit: df53daa
Date: 2026-08-04T15:30:20Z
Electron: 42.7.1
ElectronBuildId: 14760073
Chromium: 148.0.7778.280
Node.js: 24.18.0
V8: 14.8.178.38-electron.0
OS: Darwin arm64 25.5.0
Modern UI tabs: reserve close-button column so it doesn't overlay fil…
Merge pull request #330754 from cipheraxat/fix/329605-modern-ui-tab-c…