|
45 | 45 | <menupopup class="zen-workspace-creation-profiles-popup" />
|
46 | 46 | </vbox>
|
47 | 47 | <vbox class="zen-workspace-creation-buttons">
|
48 |
| - <button class="zen-workspace-creation-create-button footer-button primary" |
| 48 | + <html:div> |
| 49 | + <button class="zen-workspace-creation-create-button footer-button primary" |
49 | 50 | data-l10n-id="zen-panel-ui-workspaces-create" disabled="true" />
|
| 51 | + </html:div> |
50 | 52 | <button class="zen-workspace-creation-cancel-button footer-button"
|
51 | 53 | data-l10n-id="zen-general-cancel-label" />
|
52 | 54 | </vbox>
|
|
66 | 68 | this.querySelector('.zen-workspace-creation-name-wrapper'),
|
67 | 69 | this.querySelector('.zen-workspace-creation-profile-wrapper'),
|
68 | 70 | this.querySelector('.zen-workspace-creation-edit-theme-button'),
|
69 |
| - this.createButton, |
| 71 | + this.createButton.parentNode, |
70 | 72 | this.cancelButton,
|
71 | 73 | ];
|
72 | 74 | }
|
|
113 | 115 | }
|
114 | 116 | }
|
115 | 117 |
|
116 |
| - gBrowser.tabContainer.style.visibility = 'collapse'; |
117 |
| - if (gZenVerticalTabsManager._hasSetSingleToolbar) { |
118 |
| - document.getElementById('nav-bar').style.visibility = 'collapse'; |
119 |
| - } |
120 |
| - |
121 | 118 | for (const element of ZenWorkspaceCreation.elementsToDisable) {
|
122 | 119 | const el = document.getElementById(element);
|
123 | 120 | if (el) {
|
|
149 | 146 | this.inputProfile.parentNode.hidden = true;
|
150 | 147 | }
|
151 | 148 |
|
152 |
| - gZenUIManager.motion.animate( |
153 |
| - this.elementsToAnimate, |
154 |
| - { |
155 |
| - y: [20, 0], |
156 |
| - opacity: [0, 1], |
157 |
| - }, |
158 |
| - { |
159 |
| - duration: 0.9, |
160 |
| - type: 'spring', |
161 |
| - bounce: 0, |
162 |
| - delay: gZenUIManager.motion.stagger(0.05, { startDelay: 0.2 }), |
163 |
| - } |
164 |
| - ); |
| 149 | + gZenUIManager.motion |
| 150 | + .animate( |
| 151 | + [ |
| 152 | + gBrowser.tabContainer, |
| 153 | + ...(gZenVerticalTabsManager._hasSetSingleToolbar |
| 154 | + ? [document.getElementById('nav-bar')] |
| 155 | + : []), |
| 156 | + ], |
| 157 | + { |
| 158 | + opacity: [1, 0], |
| 159 | + }, |
| 160 | + { |
| 161 | + duration: 0.3, |
| 162 | + type: 'spring', |
| 163 | + bounce: 0, |
| 164 | + } |
| 165 | + ) |
| 166 | + .then(() => { |
| 167 | + gBrowser.tabContainer.style.visibility = 'collapse'; |
| 168 | + if (gZenVerticalTabsManager._hasSetSingleToolbar) { |
| 169 | + document.getElementById('nav-bar').style.visibility = 'collapse'; |
| 170 | + } |
| 171 | + gZenUIManager.motion.animate( |
| 172 | + this.elementsToAnimate, |
| 173 | + { |
| 174 | + y: [20, 0], |
| 175 | + opacity: [0, 1], |
| 176 | + }, |
| 177 | + { |
| 178 | + duration: 0.9, |
| 179 | + type: 'spring', |
| 180 | + bounce: 0, |
| 181 | + delay: gZenUIManager.motion.stagger(0.05, { startDelay: 0.2 }), |
| 182 | + } |
| 183 | + ); |
| 184 | + }); |
165 | 185 |
|
166 | 186 | this.resolveInitialized();
|
167 | 187 | }
|
|
272 | 292 | document.documentElement.removeAttribute('zen-creating-workspace');
|
273 | 293 |
|
274 | 294 | gBrowser.tabContainer.style.visibility = '';
|
| 295 | + gBrowser.tabContainer.style.opacity = 0; |
275 | 296 | if (gZenVerticalTabsManager._hasSetSingleToolbar) {
|
276 | 297 | document.getElementById('nav-bar').style.visibility = '';
|
| 298 | + document.getElementById('nav-bar').style.opacity = 0; |
| 299 | + } |
| 300 | + |
| 301 | + const workspace = await gZenWorkspaces.getActiveWorkspace(); |
| 302 | + await gZenWorkspaces._organizeWorkspaceStripLocations(workspace, true); |
| 303 | + await gZenWorkspaces.updateTabsContainers(); |
| 304 | + |
| 305 | + await gZenUIManager.motion.animate( |
| 306 | + [ |
| 307 | + gBrowser.tabContainer, |
| 308 | + ...(gZenVerticalTabsManager._hasSetSingleToolbar |
| 309 | + ? [document.getElementById('nav-bar')] |
| 310 | + : []), |
| 311 | + ], |
| 312 | + { |
| 313 | + opacity: [0, 1], |
| 314 | + }, |
| 315 | + { |
| 316 | + duration: 0.3, |
| 317 | + type: 'spring', |
| 318 | + bounce: 0, |
| 319 | + } |
| 320 | + ); |
| 321 | + gBrowser.tabContainer.style.opacity = ''; |
| 322 | + if (gZenVerticalTabsManager._hasSetSingleToolbar) { |
| 323 | + document.getElementById('nav-bar').style.opacity = ''; |
277 | 324 | }
|
278 | 325 |
|
279 | 326 | for (const element of this.#hiddenElements) {
|
|
0 commit comments