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

Commit

Permalink
💄 Don't duplicate browser close buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
trickypr committed Oct 26, 2023
1 parent 3d90333 commit bf4f0aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 2 additions & 6 deletions src/browser/base/content/browser-verticaltabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ var VerticalTabs = {
this.arrowScrollbox?.setAttribute('orient', 'vertical')
this.tabBrowserTabs?.setAttribute('orient', 'vertical')

document
.getElementById('navigator-toolbox-background')
?.setAttribute('verticaltabs', 'true')
document.getElementById('main-window')?.setAttribute('verticaltabs', 'true')
document
.querySelector('#TabsToolbar .toolbar-items')
?.setAttribute('align', 'start')
Expand Down Expand Up @@ -225,9 +223,7 @@ var VerticalTabs = {
this.arrowScrollbox?.setAttribute('orient', 'horizontal')
this.tabBrowserTabs?.setAttribute('orient', 'horizontal')

document
.getElementById('navigator-toolbox-background')
?.removeAttribute('verticaltabs')
document.getElementById('main-window')?.removeAttribute('verticaltabs')
document
.querySelector('#TabsToolbar .toolbar-items')
?.setAttribute('align', 'end')
Expand Down
8 changes: 3 additions & 5 deletions src/browser/themes/pulse/vertical_tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
display: none;
}

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

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

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

Expand Down

0 comments on commit bf4f0aa

Please sign in to comment.