@netless/telebox-insider 0.2.31 → 0.2.32-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2386,7 +2386,7 @@ class MaxTitleBar extends DefaultTitleBar {
2386
2386
  setState(state) {
2387
2387
  super.setState(state);
2388
2388
  if (this.$titleBar) {
2389
- this.$titleBar.classList.toggle(this.wrapClassName("max-titlebar-maximized"), state === TELE_BOX_STATE.Maximized);
2389
+ this.$titleBar.classList.toggle(this.wrapClassName("max-titlebar-maximized"), state === TELE_BOX_STATE.Maximized && this.boxes.length > 0);
2390
2390
  }
2391
2391
  this.updateTitles();
2392
2392
  }
@@ -2411,7 +2411,7 @@ class MaxTitleBar extends DefaultTitleBar {
2411
2411
  $titleBar.style.transform = `translate(${x}px, ${y}px)`;
2412
2412
  $titleBar.style.width = width + "px";
2413
2413
  $titleBar.classList.add(this.wrapClassName("max-titlebar"));
2414
- $titleBar.classList.toggle(this.wrapClassName("max-titlebar-maximized"), this.state === TELE_BOX_STATE.Maximized);
2414
+ $titleBar.classList.toggle(this.wrapClassName("max-titlebar-maximized"), this.state === TELE_BOX_STATE.Maximized && this.boxes.length > 0);
2415
2415
  $titleBar.classList.toggle(this.wrapClassName("readonly"), this.readonly);
2416
2416
  $titleBar.classList.add(this.wrapClassName(this.darkMode ? "color-scheme-dark" : "color-scheme-light"));
2417
2417
  const $titlesArea = document.createElement("div");