Skip to content

Commit

Permalink
Merge pull request #2309 from kristijanribaric/fix/workspace-reorderi…
Browse files Browse the repository at this point in the history
…ng-fixes

Fix: Add functionality to move workspace to the end and disable reorder mode on panel close
  • Loading branch information
mauro-balades authored Oct 24, 2024
2 parents bff3c47 + 31bb92c commit b7964f7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/base/content/zen-popupset.inc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
</vbox>
</panelview>

<panel flip="slide" type="arrow" orient="vertical" id="PanelUI-zen-workspaces" position="bottomright topright" mainview="true" side="left">
<panel flip="slide" type="arrow" orient="vertical" id="PanelUI-zen-workspaces" position="bottomright topright" mainview="true" side="left" onpopuphidden="ZenWorkspaces.handlePanelHidden();">
<panelmultiview id="PanelUI-zen-workspaces-multiview" mainViewId="PanelUI-zen-workspaces-view">
<panelview id="PanelUI-zen-workspaces-view" class="PanelUI-subView" role="document" mainview-with-header="true" has-custom-header="true" closemenu="none">
<vbox>
Expand Down
16 changes: 16 additions & 0 deletions src/browser/base/content/zen-styles/zen-workspaces.css
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,11 @@
border-radius: 5px;
}

.zen-workspace-last-place-drop-target.dragover {
background-color: var(--toolbarbutton-icon-fill-attention);
}


#PanelUI-zen-workspaces-reorder-mode[active='true'] {
color: var(--toolbarbutton-icon-fill-attention) !important;
}
Expand All @@ -362,6 +367,17 @@
}
}

#PanelUI-zen-workspaces-list[reorder-mode='true'] .zen-workspace-last-place-drop-target {
display: block;
}

.zen-workspace-last-place-drop-target {
display: none;
height: 4px;
width: 100%;
border-radius: 5px;
}

#PanelUI-zen-workspaces-view > vbox:nth-child(2) {
margin-top: 10px;
}
Expand Down

0 comments on commit b7964f7

Please sign in to comment.