mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-07 23:00:01 +02:00
feat(workspaces): add styling for workspace creation form and append it to tabpanels
This commit is contained in:
parent
e4e92a463f
commit
56a703de46
2 changed files with 14 additions and 1 deletions
|
@ -489,3 +489,14 @@
|
|||
#zen-current-workspace-indicator-container[hidden='true'] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#zen-workspace-create-form-wrapper {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
|
|
@ -2409,6 +2409,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||
}
|
||||
this._creatingNewWorkspace = true;
|
||||
gNavToolbox.style.zIndex = -1;
|
||||
document.getElementById('zen-sidebar-splitter').style.setProperty('min-width', 'var(--zen-element-separation)', 'important');
|
||||
await Promise.all([
|
||||
gZenUIManager.motion.animate(elementsToAnimate, {
|
||||
transform: ['scale(1)', 'scale(0.8)'],
|
||||
|
@ -2425,7 +2426,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||
),
|
||||
this.createAndSaveWorkspace()
|
||||
]);
|
||||
const form = window.MozXULElement.parseXULToFragment(`
|
||||
this._createWorkspcaeForm = window.MozXULElement.parseXULToFragment(`
|
||||
<hbox id="zen-workspace-create-form-wrapper">
|
||||
<vbox id="zen-workspace-create-form">
|
||||
<vbox>
|
||||
|
@ -2441,5 +2442,6 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||
</vbox>
|
||||
</hbox>
|
||||
`);
|
||||
gBrowser.tabpanels.appendChild(form);
|
||||
}
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue