rafaelmardojai / firefox-gnome-theme

A GNOME👣 theme for Firefox🔥
The Unlicense
3.4k stars 155 forks source link

tabsAsHeaderbar: Fitt's law - hard to click tabs when maxmized #748

Open logonoff opened 7 months ago

logonoff commented 7 months ago

Describe the bug

As a Firefox user, I often switch tabs on a maximized window by flinging my mouse cursor to the top of the screen and then clicking. By changing gnomeTheme.tabsAsHeaderbar to true, I expect this behaviour to be consistent with standard Firefox; however, it drags the window around instead.

To Reproduce

  1. Have the following settings set to:
    • gnomeTheme.tabsAsHeaderbar: true
  2. On a secondary screen (without the GNOME top bar), try to switch tabs while Firefox is maximized, while the cursor is at the top edge of the screen
  3. Notice that the click target for the tabs does not extend to the edge of the screen

Expected behavior

The click target for each tab extends to the top edge of the screen, i.e., I can switch tabs by flinging my cursor to the top of the screen and then clicking.

Screenshots

image

Setup information

Additional context

The following CSS in customChrome fixes the issue however it messes up the positioning of the tabs:

:root[tabsintitlebar] #titlebar .titlebar-buttonbox-container {
    padding: 0 !important;
}