|
359 | 359 | ) { |
360 | 360 | return; |
361 | 361 | } |
362 | | -<<<<<<< Updated upstream |
363 | 362 | delete gZenVerticalTabsManager._hadSidebarCollapse; |
364 | 363 | this.sidebar.style.setProperty('--zen-sidebar-width', `${sidebarWidth}px`); |
365 | 364 | } |
366 | 365 | return sidebarWidth; |
367 | 366 | }, |
368 | | -======= |
369 | | - if (document.documentElement.hasAttribute('zen-sidebar-expanded')) { |
370 | | - sidebarWidth -= 0.5 * splitterWidth; |
371 | | - if (elementSeparation < splitterWidth) { |
372 | | - // Subtract from the splitter width to end up with the correct element separation |
373 | | - sidebarWidth += 1.5 * splitterWidth - elementSeparation; |
374 | | - } |
375 | | - } else { |
376 | | - sidebarWidth -= elementSeparation; |
377 | | - } |
378 | | - if (canHideSidebar && isCompactMode) { |
379 | | - this._setElementExpandAttribute(this.sidebar, false); |
380 | | - gZenUIManager.motion |
381 | | - .animate( |
382 | | - this.sidebar, |
383 | | - { |
384 | | - marginRight: [0, this.sidebarIsOnRight ? `-${sidebarWidth}px` : 0], |
385 | | - marginLeft: [0, this.sidebarIsOnRight ? 0 : `-${sidebarWidth}px`], |
386 | | - }, |
387 | | - { |
388 | | - ease: 'easeIn', |
389 | | - type: 'spring', |
390 | | - bounce: 0, |
391 | | - duration: 0.12, |
392 | | - } |
393 | | - ) |
394 | | - .then(() => { |
395 | | - this.sidebar.style.transition = 'none'; |
396 | | - this.sidebar.style.pointEvents = 'none'; |
397 | | - const titlebar = document.getElementById('titlebar'); |
398 | | - titlebar.style.visibility = 'hidden'; |
399 | | - titlebar.style.transition = 'none'; |
400 | | - this.sidebar.removeAttribute('animate'); |
401 | | - document.documentElement.removeAttribute('zen-compact-animating'); |
402 | | ->>>>>>> Stashed changes |
403 | 367 |
|
404 | 368 | get canHideSidebar() { |
405 | 369 | return ( |
|
456 | 420 | resolve(); |
457 | 421 | return; |
458 | 422 | } |
459 | | - if (canHideSidebar && isCompactMode) { |
460 | | - if (document.documentElement.hasAttribute('zen-sidebar-expanded')) { |
461 | | - sidebarWidth -= 0.5 * splitterWidth; |
462 | | - if (elementSeparation < splitterWidth) { |
463 | | - // Subtract from the splitter width to end up with the correct element separation |
464 | | - sidebarWidth += 1.5 * splitterWidth - elementSeparation; |
465 | | - } |
466 | | - } else { |
467 | | - sidebarWidth -= elementSeparation; |
| 423 | + if (document.documentElement.hasAttribute('zen-sidebar-expanded')) { |
| 424 | + sidebarWidth -= 0.5 * splitterWidth; |
| 425 | + if (elementSeparation < splitterWidth) { |
| 426 | + // Subtract from the splitter width to end up with the correct element separation |
| 427 | + sidebarWidth += 1.5 * splitterWidth - elementSeparation; |
468 | 428 | } |
| 429 | + } else { |
| 430 | + sidebarWidth -= elementSeparation; |
| 431 | + } |
| 432 | + if (canHideSidebar && isCompactMode) { |
469 | 433 | this._setElementExpandAttribute(this.sidebar, false); |
470 | 434 | gZenUIManager.motion |
471 | 435 | .animate( |
|
0 commit comments