feat: Make close and reset icons only appear when hovering the tab, b=no-bug, c=folders, tabs

This commit is contained in:
Mr. M
2025-11-17 13:50:03 +01:00
parent 9a9c1c312c
commit 01f10cfc09
2 changed files with 8 additions and 1 deletions

View File

@@ -1156,7 +1156,7 @@
let dragDownThreshold =
Services.prefs.getIntPref('zen.view.drag-and-drop.drop-inside-lower-threshold') / 100;
const dropElementGroup = dropElement;
const dropElementGroup = dropElement?.isZenFolder ? dropElement : dropElement?.group;
const isSplitGroup = dropElement?.group?.hasAttribute('split-view-group');
let firstGroupElem =
dropElementGroup.querySelector('.zen-tab-group-start').nextElementSibling;

View File

@@ -329,6 +329,13 @@
scale: 0.92;
}
&:not(:hover) {
.tab-close-button,
.tab-reset-button {
display: none !important;
}
}
& .tab-icon-image {
&:not([src]),
&:-moz-broken {