Refactor Zen Compact Mode styles and preference handling

This commit is contained in:
mr. M
2025-01-06 14:06:08 +01:00
parent 3e34d123c0
commit 88548eda88
2 changed files with 2 additions and 10 deletions

View File

@@ -128,7 +128,7 @@
#navigator-toolbox[movingtab],
#navigator-toolbox:has(.tabbrowser-tab:active),
#navigator-toolbox:has(
*:is([panelopen='true'], [open='true'], #nav-bar:focus-within):not(tab):not(.zen-compact-mode-ignore)
*:is([panelopen='true'], [open], #nav-bar:focus-within):not(tab):not(.zen-compact-mode-ignore)
) {
&:not([animate='true']) {
transition:

View File

@@ -20,14 +20,6 @@ var gZenCompactModeManager = {
_removeHoverFrames: {},
init() {
XPCOMUtils.defineLazyPreferenceGetter(
lazyCompactMode,
'COMPACT_MODE_ENABLED',
'zen.view.compact',
true,
this._updateEvent.bind(this)
);
Services.prefs.addObserver('zen.view.sidebar-expanded.on-hover', this._disableTabsOnHoverIfConflict.bind(this));
Services.prefs.addObserver('zen.tabs.vertical.right-side', this._updateSidebarIsOnRight.bind(this));
@@ -41,7 +33,7 @@ var gZenCompactModeManager = {
},
get prefefence() {
return lazyCompactMode.COMPACT_MODE_ENABLED;
return Services.prefs.getBoolPref('zen.view.compact');
},
set preference(value) {