feat: Small tweaks to live folders popup, b=no-bug, c=folders, workspaces

This commit is contained in:
mr. m
2026-02-25 18:22:30 +01:00
parent 43384e54e7
commit e30f7e20a6
3 changed files with 8 additions and 2 deletions

View File

@@ -250,6 +250,7 @@ class nsZenLiveFoldersManager {
Services.prefs.setBoolPref("zen.live-folders.promotion.shown", true);
let window = this.window;
let gBrowser = window.gBrowser;
let isRightSide = window.gZenVerticalTabsManager._prefsRightSide;
const callout = new lazy.FeatureCallout({
win: this.window,
location: "chrome",
@@ -275,7 +276,7 @@ class nsZenLiveFoldersManager {
selector: `[id="${folder.id}"] > .tab-group-label-container`,
panel_position: {
anchor_attachment: "rightcenter",
callout_attachment: "topleft",
callout_attachment: isRightSide ? "topright" : "topleft",
},
},
],

View File

@@ -181,8 +181,9 @@ export class nsZenThemePicker extends nsZenMultiWindowFeature {
const fromForm = event.explicitOriginalTarget?.classList?.contains(
"zen-workspace-creation-edit-theme-button"
);
const isRightSide = window.gZenVerticalTabsManager._prefsRightSide;
PanelMultiView.openPopup(this.panel, this.toolbox, {
position: "start_before",
position: isRightSide ? "topleft topright" : "topright topleft",
triggerEvent: event,
y: fromForm ? -160 : 0,
x: -10,

View File

@@ -48,6 +48,10 @@
position: absolute;
font-size: 14px;
@media (-moz-platform: linux) {
font-size: 12px;
}
&:is(img) {
width: 14px;
}