From 0f21a69d69e014bf17eb751f44cbfe1b2a04a633 Mon Sep 17 00:00:00 2001 From: Emma Malysz Date: Tue, 23 Mar 2021 15:48:23 +0000 Subject: [PATCH] Bug 1699525, fix last tab's padding for proton r=jaws Differential Revision: https://phabricator.services.mozilla.com/D109161 --- browser/themes/shared/tabs.inc.css | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/browser/themes/shared/tabs.inc.css b/browser/themes/shared/tabs.inc.css index e5b50f9272ad..fa175ce11d2e 100644 --- a/browser/themes/shared/tabs.inc.css +++ b/browser/themes/shared/tabs.inc.css @@ -18,7 +18,6 @@ --tab-border-radius: 4px; --tab-shadow-max-size: 6px; --proton-tab-block-margin: 4px; - --proton-tab-inline-padding: 2px; --inline-tab-padding: 8px; } } /*** END proton ***/ @@ -105,15 +104,15 @@ @supports -moz-bool-pref("browser.proton.tabs.enabled") { .tabbrowser-tab { min-height: var(--tab-min-height); - padding-inline: var(--proton-tab-inline-padding) !important; + padding-inline: 2px !important; } .tabbrowser-tab[first-visible-tab] { - padding-inline-start: calc(2 * var(--proton-tab-inline-padding)) !important; + padding-inline-start: var(--tab-shadow-max-size) !important; } -.tabbrowser-tab[last-visible-tab] { - padding-inline-end: calc(2 * var(--proton-tab-inline-padding)) !important; +#tabbrowser-arrowscrollbox[overflowing][scrolledtoend] .tabbrowser-tab[last-visible-tab] { + padding-inline-end: var(--tab-shadow-max-size) !important; } /* tabbrowser-tab keyboard focus */