- **Preferences**:
- Added a new preference `zen.view.sidebar-expanded.on-hover.paused-for-expand` to manage the paused state of the sidebar hover functionality.
- Updated `zen.view.sidebar-expanded.on-hover` preference handling to ensure proper behavior when toggling the sidebar.
- **ZenUIManager.mjs**:
- Updated `_updateOnHoverVerticalTabs` method to handle the expanded state and remove hover attributes when the sidebar is expanded.
- Refactored `_updateEvent` method to check and handle the expanded state of the sidebar, and to open or close the sidebar accordingly.
- Added `openSidebar` and `closeSidebar` methods to manage the sidebar's expanded state and related attributes.
- Refactored `toggleExpand` method to handle the new `paused-for-expand` preference and ensure proper toggling of the sidebar's expanded state.
- **zen-settings.js**:
- Updated `setCompactModeStyle` method to handle the new `paused-for-expand` preference.
- Ensured that the `paused-for-expand` preference is reset when the sidebar expand strategy is changed.
- **zen-browser.js**:
- Added the new preference `zen.view.sidebar-expanded.on-hover.paused-for-expand` with a default value of `false`.
- **Submodule Updates**:
- Updated `l10n` submodule to the latest commit `dd93803b84f398834049a3f650536fbdbd14cbca`.
- Updated `zen-components` submodule to the latest commit `d853fa8de4167dfd4d1289f4f15792a698c738c3-dirty`.
- **Miscellaneous**:
- Fixed indentation issues in `ZenUIManager.mjs`.
- Removed commented-out code in `ZenUIManager.mjs`.
- Ensured proper formatting and alignment of code blocks.
ISSUE: #2156
This commit introduces a new reorder mode to the Workspaces panel, allowing users to easily rearrange their workspaces. The following changes were made:
- Added a "reorder mode" toggle button to the Workspaces panel.
- Implemented functionality to enable/disable reorder mode.
- Updated the Workspaces panel to display reorder controls for each workspace when reorder mode is enabled.
- Added visual cues to indicate the current active workspace and reorder mode status.
These changes enhance the usability of the Workspaces panel by providing a convenient way to manage and organize workspaces.
This commit introduces a new preference, "zen.workspaces.force-container-workspace", that allows users to control whether container tabs are automatically placed in a dedicated workspace. When enabled, this feature ensures that all tabs from a container are grouped together within a specific workspace.
The following files were modified:
- `src/browser/components/preferences/zen-settings.js`: Added the new preference definition.
- `src/browser/app/profile/zen-browser.js`: Set the default value for the new preference.
- `src/browser/components/preferences/zenTabsManagement.inc.xhtml`: Added a checkbox to control the new preference in the settings UI.