Skip to content
This repository was archived by the owner on Jul 23, 2026. It is now read-only.
This repository was archived by the owner on Jul 23, 2026. It is now read-only.

[create-theme]: Lock Pinned Tabs #2092

Description

@rocavence

Name

Lock Pinned Tabs

Description

Hides the close × on pinned tabs so an accidental click can't dismiss them.

Homepage

https://github.com/rocavence/zen-workspace-tabs-as-assets

Image

https://raw.githubusercontent.com/rocavence/zen-workspace-tabs-as-assets/main/image.png

Type

  • JSON Color Theme

Theme Styles

/* Lock Pinned Tabs
 *
 * Pinned tabs in a workspace are persistent assets, so their hover (x) close
 * button is removed to avoid dismissing one by an accidental click.
 * Normal (unpinned) tabs are unaffected and keep their close button.
 */

.tabbrowser-tab[pinned] .tab-close-button {
  display: none !important;
}

Readme

# Lock Pinned Tabs

Pinned tabs in a workspace are **assets**, not disposable tabs. This mod removes
the hover `×` close button on **pinned tabs** so they can't be dismissed by an
accidental click. Normal (unpinned) tabs are unaffected and keep their `×`.

## Closing a pinned tab on purpose

Right-click → **Close Tab**, or **middle-click** the tab.

## Optional: also stop ⌘W from closing pinned tabs

Zen Mods are CSS-only and can't rebind keys. If you want ⌘W to leave pinned tabs
alone, set `zen.pinned-tab-manager.close-shortcut-behavior` in `about:config` to
e.g. `reset-unload-switch` — Zen resets/unloads the pinned tab instead of closing
it, while ⌘W keeps working normally on other tabs.

Preferences

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions