mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-29 20:01:52 +00:00
feat: Always show the separator if there are visible tabs, b=closes #11349, c=tabs, workspaces
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user