-
Notifications
You must be signed in to change notification settings - Fork 280
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 numbers disappearing since 3.x release #2220
Comments
okay so its not just me. |
I use this and haven't had any problem with 3.x: /* --------------------------------------------------------------------- */
/* Add "Active Tabs / Total Tabs" on the new tab button area ----------- */
/* --------------------------------------------------------------------- */
#tabbar {
counter-reset: vtabs atabs tabs;
/* vtabs tracks visible tabs, atabs tracks active tabs, tabs tracks all tabs */
}
.tab:not(.collapsed):not(.discarded) {
counter-increment: vtabs atabs tabs;
}
.tab:not(.collapsed) {
counter-increment: vtabs tabs;
}
.tab:not(.discarded) {
counter-increment: atabs tabs;
}
.tab {
counter-increment: tabs;
}
.newtab-button::after {
content: var(--tab-count-text);
pointer-events: none;
position: absolute;
left: 0.5em;
/* TST 2.4.0 - Fix for Issue #1664 */
background: transparent !important;
mask: none !important;
}
.newtab-button {
--tab-count-text: counter(atabs) "/" counter(tabs) " tabs";
}
/* --------------------------------------------------------------------- */ |
I've confirmed that @irvinm's version looks working as expected. |
I looked at the available elements and I updated the wiki with the code using the Using
|
Excellent, @Lej77's solution(s) work for me. Thanks, and closing issue. |
@Lej77 using either one of those codes @irvinm thats not the code we are talking about man. is there any way to make it appear only when hovered over, like the burster.after command used to allow? |
HEY! i figured it out by accident!!! '''' .tab:hover::after '''' and not ''''.tab::after ''''
|
@stapuft, sorry about that. I thought the topic was "tab counter", not "tab numbering". Totally different, sorry. |
ey it happens, besides they were very close, i didn't even recognize until i read through it a second time. |
I remembered that Multiple Tab Handler injects some CSS code when it registers to Tree Style Tab. That code will conflict with the suggestion that is implemented with @stapuft It seems like you might have been using the code from the "Tab numbering on hovered tabs" section in the wiki. I updated that code in the wiki as well so you could use something like the following: #tabbar {
counter-reset: vtabs atabs tabs;
/* vtabs tracks visible tabs, atabs tracks active tabs, tabs tracks all tabs */
}
.tab:not(.collapsed):not(.discarded) {
counter-increment: vtabs atabs tabs;
}
.tab:not(.collapsed) {
counter-increment: vtabs tabs;
}
.tab:not(.discarded) {
counter-increment: atabs tabs;
}
.tab {
counter-increment: tabs;
}
.tab .extra-items-container {
z-index: unset !important;
}
.tab .extra-items-container::after {
background: Highlight;
color: HighlightText;
content: counter(vtabs);
font-size: x-small;
right: 0.2em;
padding: 0.2em;
pointer-events: none;
position: absolute;
bottom: 0.2em;
z-index: 100;
}
.tab .extra-items-container::after {
opacity: 0;
transition: 0.2s;
}
.tab:hover .extra-items-container::after {
opacity: 1;
} |
adding :hover to the ::after code you already shared works exactly like the old code did, (i posted the edited code snippet in my last post) but thank you man, im a newbie at this but im trying to learn what is the difference between the two codes? what makes one better than the other if they both do the same thing? |
@stapuft My code has the |
@Lej77 oh ok i see that now, cool thank you, could i made the padding whole pixel numbers? i am using this
to hide my scrollbars, (the theme option to hide them is broken on my end) and because of that the tab numbers are cut off partally. ....i guess that was a dumb question lol, i figured it out myself, it works, nothing is cut off, but now the number is on the oppisite side of the tabs, i actually dont mind that though. the left side of the tabs has more blank space.
i have noticed though the hoverbox itself moves around when you hover over a hidden tab that is revealed through the css string, i am assuming that this is expected behavior?
|
Positioning tab number.tab:hover::after {
background: Highlight;
color: HighlightText;
content: counter(vtabs);
font-size: x-small;
right: 5pxm;
padding: 0.2em;
pointer-events: none;
position: absolute;
bottom: 0.2em;
z-index: 100;
}
Fixed code.tab:hover::after {
background: Highlight;
color: HighlightText;
content: counter(vtabs);
font-size: x-small;
right: 5px;
padding: 0.2em;
pointer-events: none;
position: absolute;
bottom: 0.2em;
z-index: 100;
} Hidden tabs.tab.hidden:not(.collapsed):not(.pinned) {
opacity: 0.5 !important;
visibility: visible;
position: static;
pointer-events: auto;
} The problems with hidden tabs is probably because of how you reveal them. If you use Fixed code.tab.hidden:not(.collapsed):not(.pinned) {
opacity: 0.5 !important;
visibility: visible;
position: relative;
pointer-events: auto;
} |
you are a genius! i could kiss you! |
Tab numbers which were added to the "Extra style rules" stopped appearing following the 3.x releases in the last week. They appear briefly as a tab is loaded, but then disappear less than a second later.
This behavior is reproducible with a new Firefox profile using the code snippet on the TST Wiki (included below).
This behavior was observed in each of the following environments:
Mac OS 10.13.6
Firefox 66.0.2
TST 3.0 - 3.0.5
Mac OS 10.11.6
Firefox 65.0.1
TST 3.0.5
Windows 7
Firefox 66.0.2
TST 3.0.5
Tab numbering code added to style rules:
The text was updated successfully, but these errors were encountered: