feat: Always show the separator if there are visible tabs, b=closes #11349, c=tabs, workspaces

This commit is contained in:
mr. m
2025-11-19 19:14:45 +01:00
parent 306b8a6171
commit 4c5a3aeabb
3 changed files with 10 additions and 10 deletions

View File

@@ -2,4 +2,4 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
<svg xmlns="http://www.w3.org/2000/svg" height="18" width="18" viewBox="0 0 18 18"><g stroke-linecap="round" stroke-width="1.5" fill="none" stroke="context-fill" stroke-opacity="context-fill-opacity" stroke-linejoin="round" class="nc-icon-wrapper"><line x1="14" y1="4" x2="4" y2="14" data-color="color-2"></line><line x1="4" y1="4" x2="14" y2="14"></line></g></svg>
<svg xmlns="http://www.w3.org/2000/svg" height="18" width="18" viewBox="0 0 18 18"><g stroke-linecap="round" stroke-width="2" fill="none" stroke="context-fill" stroke-opacity="context-fill-opacity" stroke-linejoin="round" class="nc-icon-wrapper"><line x1="14" y1="4" x2="4" y2="14" data-color="color-2"></line><line x1="4" y1="4" x2="14" y2="14"></line></g></svg>

View File

@@ -329,13 +329,6 @@
scale: 0.92;
}
&:not(:hover) {
.tab-close-button,
.tab-reset-button {
display: none !important;
}
}
& .tab-icon-image {
&:not([src]),
&:-moz-broken {
@@ -656,7 +649,14 @@
}
}
&:is(:hover, [visuallyselected]) .tab-close-button {
&:not(:hover) {
.tab-close-button,
.tab-reset-button {
display: none;
}
}
&:is(:hover, [multiselected][selected]) .tab-close-button {
display: block;
--tab-inline-padding: 0;
margin-inline-end: 0;

View File

@@ -2536,7 +2536,7 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
// <= 2 because we have the empty tab and the new tab button
const shouldHideSeparator = fromTabSelection
? pinnedContainer.hasAttribute('hide-separator')
: pinnedContainer.children.length === 1 || !visibleTabsFound();
: !visibleTabsFound();
if (shouldHideSeparator) {
pinnedContainer.setAttribute('hide-separator', 'true');
} else {