Skip to content

Modern UI: close button overlay causes accidental tab closure when clicking the filename #329605

Closed

Description

@ImQQiaoO

Description

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:

Image

Steps to Reproduce

  1. Use the Modern UI.
  2. Open a file with a short filename, such as Locale.hpp or .env.
  3. Hover over the right side of the tab label.
  4. 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.

Related

Info

  • Version: 1.132.0 (user setup)
  • 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: Windows_NT x64 10.0.26200

Does this issue occur when all extensions are disabled?: Yes

Activity

  1. frankobjank commented on Aug 9, 2026

    @frankobjank

    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.

    Image

    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

  2. added a commit that references this issue on Aug 13, 2026
    9de2f4d
  3. added a commit that references this issue on Aug 14, 2026
    851a360
  4. added
    unreleased
    on Aug 14, 2026
  5. added this to the 1.134.0 milestone on Aug 14, 2026
  6. added
    insiders-released
    and removed
    unreleased
    on Aug 14, 2026
  7. locked and limited conversation to collaborators on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

insiders-releasedmodernization

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions