From c954fa78d5ebb46e2d105b8fcd8d69a2efe4102e Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Mon, 10 Oct 2022 21:36:41 +0900 Subject: [PATCH] Fix: Tab - Small new tab button's rounding at Photon Style --- css/leptonChrome.css | 1 + src/tab/newtab_button/_smaller_button.scss | 2 ++ 2 files changed, 3 insertions(+) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index 72006e4..6d765f8 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -6763,6 +6763,7 @@ /*= New tab button - Smaller button ==========================================*/ @supports -moz-bool-pref("userChrome.tab.newtab_button_smaller") { #tabs-newtab-button > .toolbarbutton-icon { + --tab-border-radius: var(--toolbarbutton-border-radius); margin-left: 1px; /* Original: calc((var(--tab-min-height) - 16px) / 2) = 10px */ --toolbarbutton-inner-padding: 6px; diff --git a/src/tab/newtab_button/_smaller_button.scss b/src/tab/newtab_button/_smaller_button.scss index f7ab49c..2d82a83 100644 --- a/src/tab/newtab_button/_smaller_button.scss +++ b/src/tab/newtab_button/_smaller_button.scss @@ -1,4 +1,6 @@ #tabs-newtab-button > .toolbarbutton-icon { + // Not like tab, as button + --tab-border-radius: var(--toolbarbutton-border-radius); margin-left: 1px; /* Original: calc((var(--tab-min-height) - 16px) / 2) = 10px */