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

"New Private Tab" button can't be "placed" after last tab with installed Tab Mix Plus extension #96

Closed
Infocatcher opened this issue Aug 29, 2013 · 13 comments

Comments

@Infocatcher
Copy link
Owner

Toolbar's currentset in this case:

tabbrowser-tabs,tabmixScrollBox,new-tab-button,privateTab-toolbar-openNewPrivateTab,alltabs-button,tabs-closebutton

Should be selected Options – Display – Tab Bar – When tabs don't fit width: Multi-row

@Infocatcher
Copy link
Owner Author

Test version: private_tab-0.1.5.1pre-fx-sm.xpi (source source).

@onemen
Copy link

onemen commented Sep 1, 2013

can't use the test version
Sun Sep 01 2013 23:21:07
Warning: WARN addons.xpi: Error loading bootstrap.js for privateTab@infocatcher: SyntaxError: unterminated string literal (resource://gre/modules/XPIProvider.jsm -> jar:file:///C:/Users/Hadar/AppData/Roaming/Mozilla/Firefox/Profiles/quqjpywe.Toolbar%20Tabs%20Strip/extensions/privateTab@infocatcher.xpi!/bootstrap.js:2802)
Source file: resource://gre/modules/XPIProvider.jsm -> jar:file:///C:/Users/Hadar/AppData/Roaming/Mozilla/Firefox/Profiles/quqjpywe.Toolbar%20Tabs%20Strip/extensions/privateTab@infocatcher.xpi!/bootstrap.js
Line: 2802


Sun Sep 01 2013 23:21:07
Warning: WARN addons.xpi: Add-on privateTab@infocatcher is missing bootstrap method startup
Source file: resource://gre/modules/XPIProvider.jsm
Line: 3991

Infocatcher added a commit that referenced this issue Sep 1, 2013
@Infocatcher
Copy link
Owner Author

Oops, should be fixed now.

@onemen
Copy link

onemen commented Sep 1, 2013

OK, this is better
there are still some minor problem, i will try to look at this more tomorrow

@onemen
Copy link

onemen commented Sep 3, 2013

Tabmix have an option to show new tab button on the side even when the tabbar isn't over flow
in order to do it, i need you to change some of your css rules.
adding important to USER_SHEET styleSheet prevent Tabmix from override it (from visible to collapse)

this rules can replaced the rules you used:
#TabsToolbar[currentset]:not([currentset_="' + this.toolbarButtonId + '"])\n
#' + this.afterTabsButtonId + ',\n
#TabsToolbar[customizing="true"] #' + this.afterTabsButtonId + ',\n
#tabbrowser-tabs:not([overflow="true"])\n
~ #' + this.toolbarButtonId + ',\n
#TabsToolbar[currentset_="' + this.toolbarButtonId + '"]\n
> #tabbrowser-tabs:not([overflow="true"])\n
~ #new-tab-button {\n
visibility: collapse;\n
}\n
#TabsToolbar[currentset_="' + this.toolbarButtonId + '"]:not([customizing="true"])\n
> #tabbrowser-tabs:not([overflow="true"]) > .tabbrowser-arrowscrollbox >\n
#' + this.afterTabsButtonId + ',\n
#TabsToolbar[currentset_="new-tab-button"]:not([customizing="true"])\n
> #tabbrowser-tabs:not([overflow="true"]) > .tabbrowser-arrowscrollbox >\n
.tabs-newtab-button[command="cmd_newNavigatorTab"] {\n
visibility: visible !important;\n
}\n\

@Infocatcher
Copy link
Owner Author

Your style works wrong, if button is placed before tabs (and Tab Mix Plus isn't installed).

@onemen
Copy link

onemen commented Sep 4, 2013

I see that with your code, in the case the button placed before tabs then it is visible only before tabs and never after the tabs.

try to add dynamically overflow attribute to privateTab-toolbar-openNewPrivateTab and add this rule to hide the button when not in overflow

#privateTab-toolbar-openNewPrivateTab:not([overflow="true"]) {
visibility: collapse;
}

regarding my proposed rule, as long as you don't use visibility: collapse !important; any rule is ok for me

Infocatcher added a commit that referenced this issue Sep 5, 2013
@Infocatcher
Copy link
Owner Author

regarding my proposed rule, as long as you don't use visibility: collapse !important; any rule is ok for me

Only visibility: collapse !important;? I refactored my code and styles and removed !important from collapse, but still use visibility: visible !important; (see fc445b1 commit).

@onemen
Copy link

onemen commented Sep 5, 2013

Yes.

i can override visibility: visible !important; with display: none but i can't override visibility: collapse !important; to show the "privateTab-toolbar-openNewPrivateTab" button when Tabmix preference is to show new tab button on the side all the time.

it will try to test how it work with fx445b1 commit

Infocatcher added a commit that referenced this issue Sep 5, 2013
@Infocatcher
Copy link
Owner Author

I also added special check for [newtab_side]: d2bede7.

@onemen
Copy link

onemen commented Sep 5, 2013

noticed that in the near future i'm going to change in Tabmix some attributes name to include "TabmixPkus-" prefix. so for now it is better if you left me to add the rules that relay on Tabmix attribute.

i'v tested your fc445b1 commint and without Tabmix when your button is before the tabbar it appear twice.
before the tabbar and after last tab.

currently with Tabmix, i need to fix my rules for the case that #new-tab-button is not on the tabbar. my rules currently hide your button as well

i hope to upload new test version later

Infocatcher added a commit that referenced this issue Sep 5, 2013
@Infocatcher
Copy link
Owner Author

i'v tested your fc445b1 commint and without Tabmix when your button is before the tabbar it appear twice.
before the tabbar and after last tab.

Thanks, fixed: f3430ae

so for now it is better if you left me to add the rules that relay on Tabmix attribute.

OK, I'll remove :not([newtab_side]) after you update TMP.

Infocatcher added a commit that referenced this issue Sep 16, 2013
@Infocatcher
Copy link
Owner Author

OK, I'll remove :not([newtab_side]) after you update TMP.

Done.

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

No branches or pull requests

2 participants