@netless/telebox-insider 0.2.31-beta.0 → 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.
@@ -2389,7 +2389,7 @@ class MaxTitleBar extends DefaultTitleBar {
2389
2389
  setState(state) {
2390
2390
  super.setState(state);
2391
2391
  if (this.$titleBar) {
2392
- this.$titleBar.classList.toggle(this.wrapClassName("max-titlebar-maximized"), state === exports.TELE_BOX_STATE.Maximized);
2392
+ this.$titleBar.classList.toggle(this.wrapClassName("max-titlebar-maximized"), state === exports.TELE_BOX_STATE.Maximized && this.boxes.length > 0);
2393
2393
  }
2394
2394
  this.updateTitles();
2395
2395
  }
@@ -2414,7 +2414,7 @@ class MaxTitleBar extends DefaultTitleBar {
2414
2414
  $titleBar.style.transform = `translate(${x}px, ${y}px)`;
2415
2415
  $titleBar.style.width = width + "px";
2416
2416
  $titleBar.classList.add(this.wrapClassName("max-titlebar"));
2417
- $titleBar.classList.toggle(this.wrapClassName("max-titlebar-maximized"), this.state === exports.TELE_BOX_STATE.Maximized);
2417
+ $titleBar.classList.toggle(this.wrapClassName("max-titlebar-maximized"), this.state === exports.TELE_BOX_STATE.Maximized && this.boxes.length > 0);
2418
2418
  $titleBar.classList.toggle(this.wrapClassName("readonly"), this.readonly);
2419
2419
  $titleBar.classList.add(this.wrapClassName(this.darkMode ? "color-scheme-dark" : "color-scheme-light"));
2420
2420
  const $titlesArea = document.createElement("div");