Skip to content

Commit

Permalink
Fix: Tab Bar - Compatibility for TabMixPlus's multi row
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Oct 7, 2022
1 parent e4a235b commit 7a5f650
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
22 changes: 14 additions & 8 deletions css/leptonChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -3442,7 +3442,7 @@
padding-inline: 1px !important;
}
}
.tabbrowser-tab:not([last-visible-tab]) {
#TabsToolbar:not([multibar]) .tabbrowser-tab:not([last-visible-tab]) {
margin-inline-end: -1px !important;
}
}
Expand Down Expand Up @@ -3573,15 +3573,21 @@
/* Prevent overflow pinned tab bottom margin */
}

:root:not([uidensity="compact"]) #tabbrowser-arrowscrollbox,
#tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"],
#tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"] .tab-stack,
#tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"] .tab-content {
:root:not([uidensity="compact"]) #TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox,
#TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"],
#TabsToolbar:not([multibar])
#tabbrowser-arrowscrollbox[overflowing="true"]
> .tabbrowser-tab[pinned="true"]
.tab-stack,
#TabsToolbar:not([multibar])
#tabbrowser-arrowscrollbox[overflowing="true"]
> .tabbrowser-tab[pinned="true"]
.tab-content {
max-height: var(--tab-min-height) !important;
/* Force apply height */
}

:root[uidensity="compact"] #tabbrowser-arrowscrollbox {
:root[uidensity="compact"] #TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox {
height: var(--tab-min-height) !important;
}
}
Expand Down Expand Up @@ -6139,7 +6145,7 @@
z-index: 1 !important;
}

#TabsToolbar {
#TabsToolbar:not([multibar]) {
overflow: hidden;
/* Prevent toolbar area over */
}
Expand Down Expand Up @@ -6470,7 +6476,7 @@
}

@supports -moz-bool-pref("userChrome.tab.newtab_button_like_tab") {
#tabbrowser-arrowscrollbox {
#TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox {
position: absolute;
}

Expand Down
10 changes: 5 additions & 5 deletions src/padding/_tabbar_height.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
--toolbarbutton-inner-padding: calc((var(--tab-min-height) - 18px) / 2) !important; /* Prevent overflow pinned tab bottom margin */
}

:root:not([uidensity="compact"]) #tabbrowser-arrowscrollbox,
#tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"],
#tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"] .tab-stack,
#tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"] .tab-content {
:root:not([uidensity="compact"]) #TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox,
#TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"],
#TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"] .tab-stack,
#TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox[overflowing="true"] > .tabbrowser-tab[pinned="true"] .tab-content {
max-height: var(--tab-min-height) !important; /* Force apply height */
}
:root[uidensity="compact"] #tabbrowser-arrowscrollbox {
:root[uidensity="compact"] #TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox {
height: var(--tab-min-height) !important;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/padding/_tabbar_width.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
padding-inline: 1px !important;
}
}
.tabbrowser-tab:not([last-visible-tab]) {
#TabsToolbar:not([multibar]) .tabbrowser-tab:not([last-visible-tab]) {
margin-inline-end: -1px !important;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/tab/_connect_to_window.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#tabbrowser-tabs {
z-index: 1 !important;
}
#TabsToolbar {
#TabsToolbar:not([multibar]) {
overflow: hidden; /* Prevent toolbar area over */
}

Expand Down
2 changes: 1 addition & 1 deletion src/tab/unselected_tab/_dynamic_separator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}

@include Option("userChrome.tab.newtab_button_like_tab") {
#tabbrowser-arrowscrollbox {
#TabsToolbar:not([multibar]) #tabbrowser-arrowscrollbox {
position: absolute;
}

Expand Down

0 comments on commit 7a5f650

Please sign in to comment.