@netless/telebox-insider 1.0.0-alpha.23 → 1.0.0-alpha.24

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": "1.0.0-alpha.23",
3
+ "version": "1.0.0-alpha.24",
4
4
  "private": false,
5
5
  "description": "Window widget for Whiteboard",
6
6
  "license": "MIT",
@@ -857,6 +857,10 @@ export class TeleBox {
857
857
  this.$main = $main;
858
858
  $boxMain.appendChild($main);
859
859
 
860
+ const $quarantineOuter = document.createElement("div");
861
+ $quarantineOuter.className = this.wrapClassName("quarantine-outer");
862
+ $main.appendChild($quarantineOuter);
863
+
860
864
  const $quarantine = document.createElement("div");
861
865
  $quarantine.className = this.wrapClassName("quarantine");
862
866
  $quarantine.appendChild($body);
@@ -867,10 +871,10 @@ export class TeleBox {
867
871
  const $shadowStyle = document.createElement("style");
868
872
  $shadowStyle.textContent = shadowStyles;
869
873
  $quarantine.insertBefore($shadowStyle, $quarantine.firstChild);
870
- const shadow = $main.attachShadow({ mode: "open" });
874
+ const shadow = $quarantineOuter.attachShadow({ mode: "open" });
871
875
  shadow.appendChild($quarantine);
872
876
  } else {
873
- $main.appendChild($quarantine);
877
+ $quarantineOuter.appendChild($quarantine);
874
878
  }
875
879
 
876
880
  this._renderResizeHandlers();
@@ -33,9 +33,14 @@
33
33
  }
34
34
 
35
35
  .#{$namespace}-main {
36
- position: relative;
37
36
  flex: 1;
38
37
  width: 100%;
38
+ }
39
+
40
+ .#{$namespace}-quarantine-outer {
41
+ position: relative;
42
+ width: 100%;
43
+ height: 100%;
39
44
  overflow: hidden;
40
45
  }
41
46