mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 17:36:34 +00:00
feat: enhance zen styles for toolbar, sidebar, and tabs; adjust layout and padding
This commit is contained in:
@@ -36,10 +36,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
class ZenPinnedTabManager extends ZenPreloadedFeature {
|
||||
class ZenPinnedTabManager extends ZenDOMOperatedFeature {
|
||||
|
||||
init() {
|
||||
if (!this.enabled || PrivateBrowsingUtils.isWindowPrivate(window)) {
|
||||
if (!this.enabled) {
|
||||
return;
|
||||
}
|
||||
this.observer = new ZenPinnedTabsObserver();
|
||||
@@ -51,7 +51,7 @@
|
||||
}
|
||||
|
||||
async initTabs() {
|
||||
if (!this.enabled || PrivateBrowsingUtils.isWindowPrivate(window)) {
|
||||
if (!this.enabled) {
|
||||
return;
|
||||
}
|
||||
await ZenPinnedTabsStorage.init();
|
||||
@@ -60,7 +60,7 @@
|
||||
get enabled() {
|
||||
if (typeof this._enabled === 'undefined') {
|
||||
this._enabled = !(
|
||||
document.documentElement.hasAttribute('privatebrowsingmode') ||
|
||||
PrivateBrowsingUtils.isWindowPrivate(window) ||
|
||||
document.documentElement.getAttribute('chromehidden')?.includes('toolbar') ||
|
||||
document.documentElement.getAttribute('chromehidden')?.includes('menubar')
|
||||
);
|
||||
|
Reference in New Issue
Block a user