Skip to content

Commit

Permalink
fix: TreeStyleTab.css
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbyWibowo committed Apr 23, 2023
1 parent 8d78343 commit 6ac24ab
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions TreeStyleTab.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@
direction: ltr;
}

/* Fix indent for when the scrollbar is shown */
#tabbar.overflow.scrollbar-autohide tab-item .extra-items-container.indent {
display: none;
}

:root.left.shift-tabs-for-scrollbar-only-on-hover.on-scrollbar-area:hover #tabbar.overflow.scrollbar-autohide tab-item:not(.pinned) tab-item-substance,
:root.left:not(.shift-tabs-for-scrollbar-only-on-hover) #tabbar.overflow.scrollbar-autohide tab-item:not(.pinned) tab-item-substance {
margin-left: calc(var(--tab-margin-right) + var(--tab-indent));
margin-right: var(--shift-tabs-for-scrollbar-distance);
}

/** Custom scrollbar colors **/

#tabbar {
Expand Down Expand Up @@ -128,22 +139,18 @@ tab-item-substance {
padding-left: calc(1em + 0.25em);
}

/** Only show tab close button on hover **/
/** Hide children tabs counter for non-parent tabs **/

/* "#tabbar" is required for TST 3.4.0 and later! */
#tabbar tab-item tab-item-substance:not(:hover) tab-closebox {
#tabbar tab-item:not([data-child-ids]) .counter,
#tabbar tab-item:not(.subtree-collapsed) .counter {
display: none;
}

/** Change tab margin **/

tab-item {
--tab-margin-left: 4px;
--tab-margin-right: 4px;
}
/** Only show tab close button on hover **/

tab-item.pinned tab-item-substance {
margin-right: calc(var(--tab-margin-left) + var(--tab-indent));
/* "#tabbar" is required for TST 3.4.0 and later! */
#tabbar tab-item tab-item-substance:not(:hover) tab-closebox {
display: none;
}

/** Others **/
Expand Down

0 comments on commit 6ac24ab

Please sign in to comment.