Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit bf4f0aa

Browse files
committed
💄 Don't duplicate browser close buttons
1 parent 3d90333 commit bf4f0aa

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

src/browser/base/content/browser-verticaltabs.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,7 @@ var VerticalTabs = {
176176
this.arrowScrollbox?.setAttribute('orient', 'vertical')
177177
this.tabBrowserTabs?.setAttribute('orient', 'vertical')
178178

179-
document
180-
.getElementById('navigator-toolbox-background')
181-
?.setAttribute('verticaltabs', 'true')
179+
document.getElementById('main-window')?.setAttribute('verticaltabs', 'true')
182180
document
183181
.querySelector('#TabsToolbar .toolbar-items')
184182
?.setAttribute('align', 'start')
@@ -225,9 +223,7 @@ var VerticalTabs = {
225223
this.arrowScrollbox?.setAttribute('orient', 'horizontal')
226224
this.tabBrowserTabs?.setAttribute('orient', 'horizontal')
227225

228-
document
229-
.getElementById('navigator-toolbox-background')
230-
?.removeAttribute('verticaltabs')
226+
document.getElementById('main-window')?.removeAttribute('verticaltabs')
231227
document
232228
.querySelector('#TabsToolbar .toolbar-items')
233229
?.setAttribute('align', 'end')

src/browser/themes/pulse/vertical_tabs.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
display: none;
2424
}
2525

26-
#navigator-toolbox-background[verticaltabs='true'] #titlebar {
26+
#main-window[verticaltabs='true'] #titlebar {
2727
display: none;
2828
}
2929

@@ -103,16 +103,14 @@
103103
/* Border radius up at the top left of the browser when vertical tabs are enabled */
104104
@media (-moz-gtk-csd-available) {
105105
:root[tabsintitlebar][sizemode='normal']:not([gtktiledwindow='true'])
106-
#navigator-toolbox-background[verticaltabs='true']
106+
#main-window[verticaltabs='true']
107107
#nav-bar {
108108
border-top-left-radius: env(-moz-gtk-csd-titlebar-radius);
109109
border-top-right-radius: env(-moz-gtk-csd-titlebar-radius);
110110
}
111111
}
112112

113-
#navigator-toolbox-background:not([verticaltabs='true'])
114-
#nav-bar
115-
.titlebar-buttonbox-container {
113+
#main-window:not([verticaltabs='true']) #nav-bar .titlebar-buttonbox-container {
116114
display: none;
117115
}
118116

0 commit comments

Comments
 (0)