Skip to content

Commit

Permalink
chore: followup bug 1899598 - Hide the horizontal tab strip when vert…
Browse files Browse the repository at this point in the history
…ical tabs are enabled
  • Loading branch information
onemen committed Oct 10, 2024
1 parent d2b9f6e commit 506207c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions addon/chrome/content/minit/tablib.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,13 +506,19 @@ Tabmix.tablib = {
{check: !Tabmix.isVersion(1330)}
)._replace(
'if (nonPopupWithVerticalTabs) {',
'if (nonPopupWithVerticalTabs || TabmixTabbar.hideMode === 2) {',
{check: Tabmix.isVersion(133)}
`if (
nonPopupWithVerticalTabs ||
TabmixTabbar.hideMode === 2 ||
(!isPopup &&
TabmixTabbar.hideMode === 1 &&
gBrowser.visibleTabs.length === 1)
) {`,
{check: Tabmix.isVersion(1330)}
)._replace(
/(})(\)?)$/,
`const bottomToolbox = document.getElementById("tabmix-bottom-toolbox");
if (bottomToolbox) {
bottomToolbox.collapsed = collapse;
bottomToolbox.collapsed = ${Tabmix.isVersion(1330) ? "hideTabstrip" : "collapse"};
}
$1$2`
).toCode();
Expand Down

0 comments on commit 506207c

Please sign in to comment.