From 36c05567b2827b9da82c90d15c057bb4663c5dbe Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Sun, 12 Jan 2025 01:50:29 +0900 Subject: [PATCH] Fix: FullScreen - MacOS Tabbar crop #1045 --- css/leptonChrome.css | 10 ++++++++++ css/leptonChromeESR.css | 4 ++++ src/compatibility/_os.scss | 5 +++++ 3 files changed, 19 insertions(+) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index 1257d72..0c20df2 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -313,6 +313,10 @@ } } /*= Windows - Classic Theme #734 =============================================*/ + /*= MacOS Fullscreen clipping #1045 ==========================================*/ + :root[sizemode="fullscreen"][macOSNativeFullscreen]:not([inDOMFullscreen="true"]) #navigator-toolbox { + border-top: 16px solid transparent; + } } /*= Others - Compatibility ===================================================*/ @supports -moz-bool-pref("userChrome.compatibility.panel_cutoff") { @@ -14300,6 +14304,7 @@ /*= Linux - Light System Default Theme's Selected Tab ========================*/ /*= Titlebar Container Size at maximized #384 ================================*/ /*= Windows - Classic Theme #734 =============================================*/ + /*= MacOS Fullscreen clipping #1045 ==========================================*/ } @media (-moz-bool-pref: "userChrome.compatibility.os") and (-moz-platform: windows) { :root[sizemode="normal"]:is([tabsintitlebar], [customtitlebar]) #navigator-toolbox { @@ -14384,6 +14389,11 @@ padding-top: 8px; } } +@media (-moz-bool-pref: "userChrome.compatibility.os") { + :root[sizemode="fullscreen"][macOSNativeFullscreen]:not([inDOMFullscreen="true"]) #navigator-toolbox { + border-top: 16px solid transparent; + } +} /*= Others - Compatibility ===================================================*/ @media (-moz-bool-pref: "userChrome.compatibility.panel_cutoff") { #appMenu-popup panelview { diff --git a/css/leptonChromeESR.css b/css/leptonChromeESR.css index 1117a55..6448c33 100644 --- a/css/leptonChromeESR.css +++ b/css/leptonChromeESR.css @@ -494,6 +494,10 @@ ) !important; } } + /*= MacOS Fullscreen clipping #1045 ==========================================*/ + :root[sizemode="fullscreen"][macOSNativeFullscreen]:not([inDOMFullscreen="true"]) #navigator-toolbox { + border-top: 16px solid transparent; + } } /*= Others - Compatibility ===================================================*/ @supports -moz-bool-pref("userChrome.compatibility.panel_cutoff") { diff --git a/src/compatibility/_os.scss b/src/compatibility/_os.scss index 67f03f9..412e03b 100644 --- a/src/compatibility/_os.scss +++ b/src/compatibility/_os.scss @@ -287,3 +287,8 @@ $_os_linuxDefaultShadow: 0 0 4px rgba(128, 128, 142, 0.5); } } } + +/*= MacOS Fullscreen clipping #1045 ==========================================*/ +:root[sizemode="fullscreen"][macOSNativeFullscreen]:not([inDOMFullscreen="true"]) #navigator-toolbox { + border-top: 16px solid transparent; +} \ No newline at end of file