gh-13747: Fixed space icons overflow being inaccessible (gh-14077)

This commit is contained in:
Bernardo
2026-06-09 04:51:22 -03:00
committed by GitHub
parent 11a977e533
commit 6bde408c79
2 changed files with 5 additions and 5 deletions

View File

@@ -15,12 +15,12 @@ class nsZenWorkspaceIcons extends MozXULElement {
this.initDragAndDrop();
this.addEventListener("mouseover", e => {
if (this.isReorderMode) {
if (e.shiftKey || this.isReorderMode) {
return;
}
const target = e.target.closest("toolbarbutton[zen-workspace-id]");
if (target) {
this.scrollLeft = target.offsetLeft - 10;
target.scrollIntoView({ behavior: "smooth", inline: "nearest" });
}
});
}
@@ -178,7 +178,7 @@ class nsZenWorkspaceIcons extends MozXULElement {
return;
}
buttons[selected].setAttribute("active", true);
this.scrollLeft = buttons[selected].offsetLeft - 10;
buttons[selected].scrollIntoView({ behavior: "smooth", inline: "nearest" });
this.setAttribute("selected", selected);
}

View File

@@ -20,7 +20,6 @@
display: none !important;
}
border-radius: var(--button-border-radius) !important;
background: transparent;
appearance: unset !important;
height: fit-content;
@@ -41,6 +40,7 @@
fill-opacity: 0.6;
-moz-context-properties: fill-opacity, fill;
fill: currentColor;
scroll-margin: 0 20px;
& .zen-workspace-icon {
pointer-events: none;
@@ -105,7 +105,7 @@
&[icons-overflow] {
gap: 0 !important;
justify-content: center;
justify-content: safe center;
& toolbarbutton {
margin: 0;