|
23 | 23 | <vbox class="zen-workspace-creation" flex="1">
|
24 | 24 | <form>
|
25 | 25 | <vbox>
|
26 |
| - <html:h1 data-l10n-id="zen-workspace-creation-title" class="zen-workspace-creation-title" /> |
27 |
| - <label data-l10n-id="zen-workspace-creation-label" class="zen-workspace-creation-label" /> |
| 26 | + <html:h1 data-l10n-id="zen-workspace-creation-header" class="zen-workspace-creation-title" /> |
| 27 | + <html:div> |
| 28 | + <label data-l10n-id="zen-workspace-creation-label" class="zen-workspace-creation-label" /> |
| 29 | + </html:div> |
28 | 30 | </vbox>
|
29 | 31 | <vbox class="zen-workspace-creation-form">
|
30 | 32 | <hbox class="zen-workspace-creation-name-wrapper">
|
|
68 | 70 | get elementsToAnimate() {
|
69 | 71 | return [
|
70 | 72 | this.querySelector('.zen-workspace-creation-title'),
|
71 |
| - this.querySelector('.zen-workspace-creation-label'), |
| 73 | + this.querySelector('.zen-workspace-creation-label').parentElement, |
72 | 74 | this.querySelector('.zen-workspace-creation-name-wrapper'),
|
73 | 75 | this.querySelector('.zen-workspace-creation-profile-wrapper'),
|
74 | 76 | this.querySelector('.zen-workspace-creation-edit-theme-button'),
|
|
89 | 91 | this.appendChild(this.constructor.fragment);
|
90 | 92 | this.initializeAttributeInheritance();
|
91 | 93 |
|
92 |
| - this.style.visibility = 'collapse'; |
93 |
| - |
94 | 94 | this.inputName = this.querySelector('.zen-workspace-creation-name');
|
95 | 95 | this.inputIcon = this.querySelector('.zen-workspace-creation-icon-label');
|
96 | 96 | this.inputProfile = this.querySelector('.zen-workspace-creation-profile');
|
|
152 | 152 | this.inputProfile.parentNode.hidden = true;
|
153 | 153 | }
|
154 | 154 |
|
| 155 | + document.getElementById('zen-sidebar-splitter').style.pointerEvents = 'none'; |
| 156 | + |
155 | 157 | gZenUIManager.motion
|
156 | 158 | .animate(
|
157 |
| - [ |
158 |
| - gBrowser.tabContainer, |
159 |
| - ...(gZenVerticalTabsManager._hasSetSingleToolbar ? [gURLBar.textbox] : []), |
160 |
| - ], |
| 159 | + [gBrowser.tabContainer, gURLBar.textbox], |
161 | 160 | {
|
162 | 161 | opacity: [1, 0],
|
163 | 162 | },
|
|
170 | 169 | .then(() => {
|
171 | 170 | gBrowser.tabContainer.style.visibility = 'collapse';
|
172 | 171 | if (gZenVerticalTabsManager._hasSetSingleToolbar) {
|
173 |
| - gURLBar.textbox.style.visibility = 'collapse'; |
| 172 | + document.getElementById('nav-bar').style.visibility = 'collapse'; |
174 | 173 | }
|
175 |
| - this.style.visibility = ''; |
| 174 | + this.style.visibility = 'visible'; |
176 | 175 | gZenUIManager.motion.animate(
|
177 | 176 | this.elementsToAnimate,
|
178 | 177 | {
|
179 | 178 | y: [20, 0],
|
180 | 179 | opacity: [0, 1],
|
181 | 180 | },
|
182 | 181 | {
|
183 |
| - duration: 0.9, |
| 182 | + duration: 0.6, |
184 | 183 | type: 'spring',
|
185 | 184 | bounce: 0,
|
186 | 185 | delay: gZenUIManager.motion.stagger(0.05, { startDelay: 0.2 }),
|
|
203 | 202 | await gZenWorkspaces._organizeWorkspaceStripLocations(workspace, true);
|
204 | 203 | await gZenWorkspaces.updateTabsContainers();
|
205 | 204 |
|
206 |
| - this.tabContainer._invalidateCachedTabs(); |
| 205 | + gBrowser.tabContainer._invalidateCachedTabs(); |
207 | 206 |
|
208 | 207 | if (gZenVerticalTabsManager._canReplaceNewTab) {
|
209 | 208 | BrowserCommands.openTab();
|
|
273 | 272 | opacity: [1, 0],
|
274 | 273 | },
|
275 | 274 | {
|
276 |
| - duration: 0.9, |
| 275 | + duration: 0.4, |
277 | 276 | type: 'spring',
|
278 | 277 | bounce: 0,
|
279 | 278 | delay: gZenUIManager.motion.stagger(0.05),
|
280 | 279 | }
|
281 | 280 | );
|
282 | 281 |
|
| 282 | + document.getElementById('zen-sidebar-splitter').style.pointerEvents = ''; |
| 283 | + |
283 | 284 | gZenWorkspaces.removeChangeListeners(this.handleZenWorkspacesChangeBind);
|
284 | 285 | for (const element of this.constructor.elementsToDisable) {
|
285 | 286 | const el = document.getElementById(element);
|
|
298 | 299 | gBrowser.tabContainer.style.visibility = '';
|
299 | 300 | gBrowser.tabContainer.style.opacity = 0;
|
300 | 301 | if (gZenVerticalTabsManager._hasSetSingleToolbar) {
|
301 |
| - gURLBar.textbox.style.visibility = ''; |
| 302 | + document.getElementById('nav-bar').style.visibility = ''; |
302 | 303 | gURLBar.textbox.style.opacity = 0;
|
303 | 304 | }
|
304 | 305 |
|
|
309 | 310 | await gZenWorkspaces.updateTabsContainers();
|
310 | 311 |
|
311 | 312 | await gZenUIManager.motion.animate(
|
312 |
| - [ |
313 |
| - gBrowser.tabContainer, |
314 |
| - ...(gZenVerticalTabsManager._hasSetSingleToolbar ? [gURLBar.textbox] : []), |
315 |
| - ], |
| 313 | + [gBrowser.tabContainer, gURLBar.textbox], |
316 | 314 | {
|
317 | 315 | opacity: [0, 1],
|
318 | 316 | },
|
|
0 commit comments