@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/dist/style.css +6 -1
- package/dist/telebox-insider.cjs.js +6 -3
- package/dist/telebox-insider.cjs.js.map +1 -1
- package/dist/telebox-insider.es.js +6 -3
- package/dist/telebox-insider.es.js.map +1 -1
- package/package.json +1 -1
- package/src/TeleBox/index.ts +6 -2
- package/src/TeleBox/style.scss +6 -1
package/package.json
CHANGED
package/src/TeleBox/index.ts
CHANGED
|
@@ -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 = $
|
|
874
|
+
const shadow = $quarantineOuter.attachShadow({ mode: "open" });
|
|
871
875
|
shadow.appendChild($quarantine);
|
|
872
876
|
} else {
|
|
873
|
-
$
|
|
877
|
+
$quarantineOuter.appendChild($quarantine);
|
|
874
878
|
}
|
|
875
879
|
|
|
876
880
|
this._renderResizeHandlers();
|
package/src/TeleBox/style.scss
CHANGED