Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tab_close_on_active_tab_only adds close to pinned tab: suggested fix #203

Closed
Elmohound opened this issue Apr 10, 2019 · 1 comment
Closed
Assignees
Labels

Comments

@Elmohound
Copy link

Elmohound commented Apr 10, 2019

Title: Tweak for tab_close_on_active_tab_only to prevent close icons on pinned tabs

  1. Describe the issue
    The tab_close_on_active_tab_only puts close symbol on pinned tabs, which are too narrow.
    The behavior differs between Windows7 and MacOS (Yosemite).
    On Windows, a pinned tab with the close icon expands and overwrites any pinned tab to the right.
    In other words, to tabs can overlap.

On Macintosh, the effect isn't as severe, here a pinned tab with a close icon also expands, but it shifts all the tabs to the right so that are no overlapping tabs.

  1. What should have happened instead?
    Desired behavior: There should be no close symbol present on pinned tabs, which is "standard" for pinned tabs when using "Close on active tabs only"

Suggested fix: Modify tab_close_on_active_tab_only.css to have a conditional clause for not([pinned]).
Mine looks like this:

#tabbrowser-tabs .tabbrowser-tab:not([pinned]):[selected="true"] .tab-close-button {
visibility: visible !important;
display: block !important;
}

  1. Steps to reproduce the issue?
    a. Edit userChrome.css to specify:

    @import "./css/tabs/tab_close_on_active_tab_only.css";

b. Launch Firefox and make sure that there are some pinned tabs

c. Click on one or more pinned tabs in succession in order to observe how they are drawn

  1. SCREENSHOTS with/without this projects files (drag & drop images into this post)
    Trouble uploading

  2. System information

  • OS & OS version: Windows 7 Pro (64), MacOS 10.10.5 (Yosemite)
  • OS theme name: Windows Classic Shell
  • DPI / HiDPI resolution:
    Windows: 1680 x 1050
    MacOS : 1680 x 1050
  • Firefox version: Firefox 66.02.2 (64-bit)
  • Firefox theme / lw-theme: I used this project's custom userChrom.css and only changed close behavior and uncommented multirow bookmarks support
@Aris-t2
Copy link
Owner

Aris-t2 commented Apr 10, 2019

Actually you are right, the close button was not meant to show up on pinned tabs.

@Aris-t2 Aris-t2 self-assigned this Apr 10, 2019
@Aris-t2 Aris-t2 added the BUG label Apr 10, 2019
@Aris-t2 Aris-t2 closed this as completed May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants