From cfd1e7a6aa3c06f8d4b049b6a0e2b922b5ab5ad0 Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Fri, 8 May 2026 13:08:17 +0200 Subject: [PATCH] no-bug: Make extensions list hidden for double toolbar (gh-13610) --- .../common/styles/zen-overflowing-addons.css | 82 ++++++++++--------- 1 file changed, 43 insertions(+), 39 deletions(-) diff --git a/src/zen/common/styles/zen-overflowing-addons.css b/src/zen/common/styles/zen-overflowing-addons.css index 34391ce96..a9ef2a798 100644 --- a/src/zen/common/styles/zen-overflowing-addons.css +++ b/src/zen/common/styles/zen-overflowing-addons.css @@ -4,48 +4,52 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#zen-overflow-extensions-list:not(:empty) { - --uei-icon-size: 14px; - display: grid; - gap: 8px; - padding: 8px 2px; - padding-bottom: 0; - border-radius: calc(var(--border-radius-medium) - 4px); - grid-template-columns: repeat(auto-fit, minmax(32px, 1fr)); +#zen-overflow-extensions-list { + display: none; + + :root[zen-single-toolbar="true"] &:not(:empty) { + --uei-icon-size: 14px; + display: grid; + gap: 8px; + padding: 8px 2px; + padding-bottom: 0; + border-radius: calc(var(--border-radius-medium) - 4px); + grid-template-columns: repeat(auto-fit, minmax(32px, 1fr)); - & .unified-extensions-item { - flex: 1; - margin: 0; - } + & .unified-extensions-item { + flex: 1; + margin: 0; + } - & .toolbarbutton-badge-stack { - margin: 0; - width: 100%; - height: 100%; - padding: 8px 0; - justify-content: center; - align-items: center; - } + & .toolbarbutton-badge-stack { + margin: 0; + width: 100%; + height: 100%; + padding: 8px 0; + justify-content: center; + align-items: center; + } - & .unified-extensions-item-action-button { - appearance: none; - background-color: var(--zen-toolbar-element-bg); - height: 30px; - margin: 0; - justify-content: center; - align-items: center; - border-radius: var(--border-radius-medium); - overflow: clip; - padding: 0; + & .unified-extensions-item-action-button { + appearance: none; + background-color: var(--zen-toolbar-element-bg); + height: 30px; + margin: 0; + justify-content: center; + align-items: center; + border-radius: var(--border-radius-medium); + overflow: clip; + padding: 0; - &:hover { - background-color: var(--zen-toolbar-element-bg-hover); + &:hover { + background-color: var(--zen-toolbar-element-bg-hover); + } + } + + .unified-extensions-item-contents, + .unified-extensions-item-menu-button, + unified-extensions-item-messagebar-wrapper { + display: none; } } - - .unified-extensions-item-contents, - .unified-extensions-item-menu-button, - unified-extensions-item-messagebar-wrapper { - display: none; - } -} +} \ No newline at end of file