Skip to content

Commit 536cb66

Browse files
committed
Fix: Window Control - Oneliner Tarbar first at Mac
1 parent 97e1ab3 commit 536cb66

File tree

2 files changed

+32
-11
lines changed

2 files changed

+32
-11
lines changed

css/leptonChrome.css

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5358,6 +5358,12 @@
53585358
--uc-window-drag-space-pre: 0px;
53595359
}
53605360
}
5361+
@supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled") {
5362+
:root:is([tabsintitlebar], [sizemode="fullscreen"]) {
5363+
/* Don't need window control */
5364+
--uc-window-control-space: 0px;
5365+
}
5366+
}
53615367
@supports -moz-bool-pref("userChrome.tabbar.as_titlebar") {
53625368
:root:is([tabsintitlebar], [sizemode="fullscreen"]) #tabbrowser-tabs {
53635369
/* Don't need window control */
@@ -5407,6 +5413,12 @@
54075413
--uc-window-drag-space-pre: 0px;
54085414
}
54095415
}
5416+
@supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled") {
5417+
:root:is([tabsintitlebar], [sizemode="fullscreen"]) {
5418+
/* Don't need window control */
5419+
--uc-window-control-space: 0px;
5420+
}
5421+
}
54105422
@supports -moz-bool-pref("userChrome.tabbar.as_titlebar") {
54115423
:root:is([tabsintitlebar], [sizemode="fullscreen"]) #tabbrowser-tabs {
54125424
/* Don't need window control */
@@ -5566,11 +5578,6 @@
55665578
margin-inline-end: var(--uc-window-drag-space-pre, 0px) !important;
55675579
}
55685580
}
5569-
@supports -moz-bool-pref("userChrome.tabbar.one_liner.tabbar_first") {
5570-
:root[tabsintitlebar="true"]:not([inFullscreen]) #TabsToolbar {
5571-
margin-inline-start: var(--uc-window-control-space, 0px) !important;
5572-
}
5573-
}
55745581
}
55755582
@supports -moz-bool-pref("userChrome.tabbar.one_liner.responsive") {
55765583
@media screen and (min-width: 1100px) {
@@ -5579,10 +5586,19 @@
55795586
margin-inline-end: var(--uc-window-drag-space-pre, 0px) !important;
55805587
}
55815588
}
5582-
@supports -moz-bool-pref("userChrome.tabbar.one_liner.tabbar_first") {
5583-
:root[tabsintitlebar="true"]:not([inFullscreen]) #TabsToolbar {
5584-
margin-inline-start: var(--uc-window-control-space, 0px) !important;
5585-
}
5589+
}
5590+
}
5591+
}
5592+
@supports -moz-bool-pref("userChrome.tabbar.one_liner.tabbar_first") {
5593+
@supports not -moz-bool-pref("userChrome.tabbar.one_liner.responsive") {
5594+
:root[tabsintitlebar="true"]:not([inFullscreen]) #TabsToolbar {
5595+
margin-inline-start: var(--uc-window-control-width, 0px) !important;
5596+
}
5597+
}
5598+
@supports -moz-bool-pref("userChrome.tabbar.one_liner.responsive") {
5599+
@media screen and (min-width: 1100px) {
5600+
:root[tabsintitlebar="true"]:not([inFullscreen]) #TabsToolbar {
5601+
margin-inline-start: var(--uc-window-control-width, 0px) !important;
55865602
}
55875603
}
55885604
}

src/tabbar/layout/_navbar_padding.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
@include OS($win, $linux) {
1818
@include _remove_spacer_pre;
1919
}
20+
@include OS($mac) {
21+
@include _remove_spacer_post;
22+
}
2023
@include Option("userChrome.tabbar.as_titlebar") {
2124
#tabbrowser-tabs {
2225
@include _remove_spacer_post;
@@ -133,8 +136,10 @@
133136
@include NotOption("userChrome.tabbar.one_liner.tabbar_first") {
134137
margin-inline-end: var(--uc-window-drag-space-pre, 0px) !important;
135138
}
136-
@include Option("userChrome.tabbar.one_liner.tabbar_first") {
137-
margin-inline-start: var(--uc-window-control-space, 0px) !important;
139+
}
140+
@include Option("userChrome.tabbar.one_liner.tabbar_first") {
141+
@include OneLinerContent {
142+
margin-inline-start: var(--uc-window-control-width, 0px) !important;
138143
}
139144
}
140145
}

0 commit comments

Comments
 (0)