@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/telebox-insider",
3
- "version": "0.2.31-beta.0",
3
+ "version": "0.2.32-beta.0",
4
4
  "private": false,
5
5
  "description": "Window widget for Whiteboard",
6
6
  "author": "CRIMX <straybugs@gmail.com> (https://github.com/crimx/)",
@@ -72,7 +72,7 @@
72
72
  "sass": "^1.36.0",
73
73
  "sass-loader": "^10.1.1",
74
74
  "side-effect-manager": "0.1.5",
75
- "typescript": "^5.4.5",
75
+ "typescript": "^4.9.5",
76
76
  "value-enhancer": "^0.0.8",
77
77
  "vite": "^2.4.4"
78
78
  }
@@ -71,7 +71,7 @@ export class MaxTitleBar extends DefaultTitleBar {
71
71
  if (this.$titleBar) {
72
72
  this.$titleBar.classList.toggle(
73
73
  this.wrapClassName("max-titlebar-maximized"),
74
- state === TELE_BOX_STATE.Maximized
74
+ state === TELE_BOX_STATE.Maximized && this.boxes.length > 0
75
75
  );
76
76
  }
77
77
  this.updateTitles();
@@ -113,7 +113,7 @@ export class MaxTitleBar extends DefaultTitleBar {
113
113
  $titleBar.classList.add(this.wrapClassName("max-titlebar"));
114
114
  $titleBar.classList.toggle(
115
115
  this.wrapClassName("max-titlebar-maximized"),
116
- this.state === TELE_BOX_STATE.Maximized
116
+ this.state === TELE_BOX_STATE.Maximized && this.boxes.length > 0
117
117
  );
118
118
  $titleBar.classList.toggle(
119
119
  this.wrapClassName("readonly"),