From 2a250121cbd413396f17b674547f2c7aceb08e68 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Wed, 23 Mar 2022 11:09:21 +0900 Subject: [PATCH] Fix: Tabs on Bottom - No titlebar with fullscreen --- src/tabbar/_tabs_on_bottom.scss | 8 ++++---- userChrome.css | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/tabbar/_tabs_on_bottom.scss b/src/tabbar/_tabs_on_bottom.scss index bee0fc6..e5e21f5 100644 --- a/src/tabbar/_tabs_on_bottom.scss +++ b/src/tabbar/_tabs_on_bottom.scss @@ -105,12 +105,12 @@ See the above repository for updates as well as full license text. */ /*= Navbar - Padding for window controls =====================================*/ /* Customized https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/window_control_placeholder_support.css */ -:root[tabsintitlebar] { +:root:is([tabsintitlebar], [sizemode="fullscreen"]) { --uc-window-control-width: 84px; /* Same as .titlebar-buttonbox-container - Space reserved for window controls, 84px is default value of linux */ --uc-window-drag-space-pre: 30px; /* Same as .titlebar-spacer[type="pre-tabs"] - Extra space reserved on both sides of the nav-bar to be able to drag the window */ --uc-window-drag-space-post: 25px; /* Same as .titlebar-spacer[type="post-tabs"] */ } -:root[tabsintitlebar][sizemode="maximized"] { +:root:is([tabsintitlebar][sizemode="maximized"], [sizemode="fullscreen"]) { --uc-window-drag-space-pre: 0px; /* Remove pre space */ } @@ -124,13 +124,13 @@ See the above repository for updates as well as full license text. */ /* Windows */ @include OS($win7, $win8) { - :root[tabsintitlebar] { + :root:is([tabsintitlebar], [sizemode="fullscreen"]) { --uc-window-control-width: 105px; } } @include OS($win10) { - :root[tabsintitlebar] { + :root:is([tabsintitlebar], [sizemode="fullscreen"]) { --uc-window-control-width: 138px; } } diff --git a/userChrome.css b/userChrome.css index f59bc2b..a8e5745 100644 --- a/userChrome.css +++ b/userChrome.css @@ -3619,7 +3619,7 @@ /*= Navbar - Padding for window controls =====================================*/ /* Customized https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/window_control_placeholder_support.css */ - :root[tabsintitlebar] { + :root:is([tabsintitlebar], [sizemode="fullscreen"]) { --uc-window-control-width: 84px; /* Same as .titlebar-buttonbox-container - Space reserved for window controls, 84px is default value of linux */ --uc-window-drag-space-pre: 30px; @@ -3628,7 +3628,7 @@ /* Same as .titlebar-spacer[type="post-tabs"] */ } - :root[tabsintitlebar][sizemode="maximized"] { + :root:is([tabsintitlebar][sizemode="maximized"], [sizemode="fullscreen"]) { --uc-window-drag-space-pre: 0px; /* Remove pre space */ } @@ -3645,12 +3645,12 @@ (-moz-platform: windows-win7), (-moz-os-version: windows-win8), (-moz-platform: windows-win8) { - :root[tabsintitlebar] { + :root:is([tabsintitlebar], [sizemode="fullscreen"]) { --uc-window-control-width: 105px; } } @media (-moz-os-version: windows-win10), (-moz-platform: windows-win10) { - :root[tabsintitlebar] { + :root:is([tabsintitlebar], [sizemode="fullscreen"]) { --uc-window-control-width: 138px; } }