Skip to content

Fix: Add functionality to move workspace to the end and disable reorder mode on panel close#2309

Merged
mr-cheffy merged 1 commit intozen-browser:devfrom
kristijanribaric:fix/workspace-reordering-fixes
Oct 24, 2024
Merged

Fix: Add functionality to move workspace to the end and disable reorder mode on panel close#2309
mr-cheffy merged 1 commit intozen-browser:devfrom
kristijanribaric:fix/workspace-reordering-fixes

Conversation

@kristijanribaric
Copy link
Member

This commit adds a new `onpopuphidden` attribute to the `<panel>` element that defines the workspace panel. This attribute triggers the `ZenWorkspaces.handlePanelHidden()` function when the panel is hidden.

This change is necessary to allow the application to properly handle the case when the workspace panel is hidden so that the reorder mode can be disabled.

The following changes were made:

- Added the `onpopuphidden` attribute to the `<panel>` element in `zen-popupset.inc.xhtml`.
- Added a new CSS class `.zen-workspace-last-place-drop-target` to `zen-workspaces.css`.
- Modified the `zen-workspaces.css` file to display the `.zen-workspace-last-place-drop-target` class only in reorder mode.
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Oct 24, 2024
@mr-cheffy mr-cheffy merged commit b7964f7 into zen-browser:dev Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Twilight] Issues with workspace menus

2 participants