Skip to content

Commit

Permalink
Fix: Tab Bar - --tab-min-height_mlt set for TabMixPlus
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Oct 16, 2022
1 parent d3bac5c commit c4614ac
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
24 changes: 18 additions & 6 deletions css/leptonChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -3598,7 +3598,25 @@
}
}
}
:root {
/* Works with TabMixPlus */
--tab-min-height_mlt: calc(
var(--tab-min-height) + 2 * (var(--tab-block-margin, var(--proton-tab-block-margin, 0px)))
) !important;
}

#TabsToolbar[multibar] .tabbrowser-tab {
height: unset !important;
/* Original: var(--tab-min-height_mlt) */
}

@supports -moz-bool-pref("userChrome.tab.connect_to_window") {
:root {
--tab-min-height_mlt: calc(
var(--tab-min-height) + var(--tab-block-margin, var(--proton-tab-block-margin, 0px))
) !important;
}

#TabsToolbar {
--toolbarbutton-inner-padding: calc((var(--tab-min-height) - 18px) / 2) !important;
/* Prevent overflow pinned tab bottom margin */
Expand All @@ -3622,12 +3640,6 @@
height: var(--tab-min-height) !important;
}
}
/* Works with TabMixPlus */
#TabsToolbar[multibar] .tabbrowser-tab {
height: unset !important;
/* Original: var(--tab-min-height_mlt) */
}

/* Scroll Button - Size Fix */
:root #tabbrowser-arrowscrollbox {
--scrollbtn-vertical-padding: 3px;
Expand Down
18 changes: 13 additions & 5 deletions src/padding/_tabbar_height.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,20 @@
}
}
}

:root {
/* Works with TabMixPlus */
--tab-min-height_mlt: calc(var(--tab-min-height) + 2 * (var(--tab-block-margin, var(--proton-tab-block-margin, 0px)))) !important;
}
#TabsToolbar[multibar] .tabbrowser-tab {
height: unset !important; /* Original: var(--tab-min-height_mlt) */
}

@include Option("userChrome.tab.connect_to_window") {
:root {
--tab-min-height_mlt: calc(var(--tab-min-height) + var(--tab-block-margin, var(--proton-tab-block-margin, 0px))) !important;
}

#TabsToolbar {
--toolbarbutton-inner-padding: calc((var(--tab-min-height) - 18px) / 2) !important; /* Prevent overflow pinned tab bottom margin */
}
Expand All @@ -59,11 +72,6 @@
}
}

/* Works with TabMixPlus */
#TabsToolbar[multibar] .tabbrowser-tab {
height: unset !important; /* Original: var(--tab-min-height_mlt) */
}

/* Scroll Button - Size Fix */
:root #tabbrowser-arrowscrollbox {
--scrollbtn-vertical-padding: 3px;
Expand Down

0 comments on commit c4614ac

Please sign in to comment.