From 4daf1969be50c9a895871eb1989ef1c1ec80a5e6 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Wed, 1 Jun 2022 00:18:02 +0300 Subject: [PATCH] modify tab-label line-height to prevent tab height increase w large font --- chrome/autohide_tabstoolbar.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrome/autohide_tabstoolbar.css b/chrome/autohide_tabstoolbar.css index dcb52c0..afbd7e6 100644 --- a/chrome/autohide_tabstoolbar.css +++ b/chrome/autohide_tabstoolbar.css @@ -32,3 +32,9 @@ See the above repository for updates as well as full license text. */ visibility: visible; transition-delay: 18ms } +/* These rules make sure that height of tabs toolbar doesn't exceed tab-min-height */ +#tabbrowser-tabs:not([secondarytext-unsupported]) .tab-label-container{ + max-height: var(--tab-min-height); +} +.tab-label{ line-height: 20px !important; } +:root[uidensity="compact"] .tab-label{ line-height: 18px !important; } \ No newline at end of file