feat: Hide new tab button along with all tabs button in customizable UI

This commit is contained in:
mr. M
2024-11-08 19:55:13 +01:00
parent f093228f71
commit d2746689f9
2 changed files with 4 additions and 12 deletions

View File

@@ -98,7 +98,7 @@ export var ZenCustomizableUI = new (class {
}
_hideToolbarButtons(window) {
const elementsToHide = ['alltabs-button'];
const elementsToHide = ['alltabs-button', 'new-tab-button'];
for (let id of elementsToHide) {
const elem = window.document.getElementById(id);
if (elem) {

View File

@@ -1,5 +1,5 @@
diff --git a/browser/base/content/navigator-toolbox.inc.xhtml b/browser/base/content/navigator-toolbox.inc.xhtml
index 12fa0cf79aade28581016adf96df85386dabdcef..52f15cd79388cefa1e07644602df93dce5d6fa74 100644
index 12fa0cf79aade28581016adf96df85386dabdcef..846add9b040abf0f7378ebaaadef007013f5a1ec 100644
--- a/browser/base/content/navigator-toolbox.inc.xhtml
+++ b/browser/base/content/navigator-toolbox.inc.xhtml
@@ -2,7 +2,7 @@
@@ -51,15 +51,7 @@ index 12fa0cf79aade28581016adf96df85386dabdcef..52f15cd79388cefa1e07644602df93dc
<tab is="tabbrowser-tab" class="tabbrowser-tab" selected="true" visuallyselected="" fadein=""/>
<hbox id="tabbrowser-arrowscrollbox-periphery">
<toolbartabstop/>
@@ -90,7 +96,6 @@
ondrop="newTabButtonObserver.onDrop(event)"
ondragover="newTabButtonObserver.onDragOver(event)"
ondragenter="newTabButtonObserver.onDragOver(event)"
- cui-areatype="toolbar"
removable="true"/>
<toolbarbutton id="alltabs-button"
@@ -113,9 +118,10 @@
@@ -113,9 +119,10 @@
<toolbarbutton id="content-analysis-indicator"
oncommand="ContentAnalysis.showPanel(this, PanelUI);"
class="toolbarbutton-1 content-analysis-indicator-icon"/>
@@ -72,7 +64,7 @@ index 12fa0cf79aade28581016adf96df85386dabdcef..52f15cd79388cefa1e07644602df93dc
</toolbar>
</vbox>
@@ -531,6 +537,7 @@
@@ -531,6 +538,7 @@
consumeanchor="PanelUI-button"
data-l10n-id="appmenu-menu-button-closed2"/>
</toolbaritem>