feat: Correctly calculate certain popup opening coordinates, b=no-bug, c=folders, workspaces

This commit is contained in:
mr. m
2026-02-19 00:38:21 +01:00
parent 6273313ce3
commit a30ddc98bd
2 changed files with 3 additions and 3 deletions

View File

@@ -730,12 +730,12 @@ class nsZenFolders extends nsZenDOMOperatedFeature {
get #searchPopupOptions() {
const isRightSide = gZenVerticalTabsManager._prefsRightSide;
const position = isRightSide ? "start_before" : "start_before";
let size = Math.min(this.#popup.querySelector("#zen-folder-tabs-list").children.length, 6) + 1;
let size = Math.min(this.#popup.querySelector("#zen-folder-tabs-list").children.length, 6);
size *= 48;
return {
position,
x: -10,
y: -size / 4,
y: size / -2,
};
}

View File

@@ -185,7 +185,7 @@ export class nsZenThemePicker extends nsZenMultiWindowFeature {
position: "start_before",
triggerEvent: event,
y: fromForm ? -160 : 0,
x: 10,
x: -10,
});
}