refactor: enhance CSS styles for zen components and improve layout handling

This commit is contained in:
mr. M
2024-12-02 23:55:05 +01:00
parent c993563185
commit 139ab630e0
9 changed files with 225 additions and 142 deletions

View File

@@ -63,6 +63,13 @@ var gZenCompactModeManager = {
this.updateContextMenu();
},
updateCompactModeContext(isSingleToolbar) {
const IDs = ['zen-context-menu-compact-mode-hide-sidebar', 'zen-context-menu-compact-mode-hide-toolbar', 'zen-context-menu-compact-mode-hide-both'];
for (let id of IDs) {
document.getElementById(id).disabled = isSingleToolbar;
}
},
hideSidebar() {
Services.prefs.setBoolPref('zen.view.compact.hide-tabbar', true);
Services.prefs.setBoolPref('zen.view.compact.hide-toolbar', false);