Update watermark preference based on build type and enhance URL bar positioning

This commit is contained in:
mr. M
2024-11-30 18:59:47 +01:00
parent 4b6f5282b4
commit c8e44703d5
4 changed files with 11 additions and 3 deletions

View File

@@ -173,7 +173,11 @@ pref('zen.essentials.enabled', true);
pref('zen.workspaces.container-specific-essentials-enabled', false);
// Zen Watermark
#ifdef MOZILLA_OFFICIAL
pref('zen.watermark.enabled', true, sticky);
#else
pref('zen.watermark.enabled', false, sticky);
#endif
// Smooth scrolling
pref('apz.overscroll.enabled', true); // not DEFAULT on Linux

View File

@@ -131,9 +131,10 @@ var gZenVerticalTabsManager = {
this._toolbarOriginalParent = document.getElementById('nav-bar').parentElement;
gZenCompactModeManager.addEventListener(updateEvent);
this._updateEvent();
this.initRightSideOrderContextMenu();
window.addEventListener('DOMContentLoaded', updateEvent, { once: true });
const tabs = document.getElementById('tabbrowser-tabs');
XPCOMUtils.defineLazyPreferenceGetter(this, 'canOpenTabOnMiddleClick', 'zen.tabs.newtab-on-middle-click', true);

View File

@@ -20,6 +20,9 @@
min-width: 45%;
--urlbar-container-height: 55px !important;
--urlbar-margin-inline: 10px !important;
position: fixed;
top: calc(var(--zen-toolbar-height) * 4);
left: 50%;
transform: translateX(-50%);

View File

@@ -492,7 +492,7 @@
// Return as a proper data URL
return `data:${faviconData.mimeType};base64,${base64String}`;
} catch (ex) {
console.error("Failed to get favicon:", ex);
// console.error("Failed to get favicon:", ex);
return null;
}
}
@@ -577,4 +577,4 @@
}
window.gZenPinnedTabManager = new ZenPinnedTabManager();
}
}