This commit is contained in:
Rizky 2023-10-25 20:13:25 +07:00
parent 1363c7ce4f
commit 62df8a3faa
2 changed files with 24 additions and 20 deletions

View File

@ -1,8 +1,10 @@
import init from "wasm-gzip";
import { PG } from "./ed-global";
import init, { decompress } from "wasm-gzip";
import { jscript } from "../../editor/panel/script/script-element";
export const edInit = async (p: PG) => {
await init();
jscript.init();
p.status = "ready";
p.render();
};

View File

@ -517,6 +517,7 @@ const SitePicker = ({
)}
</div>
</div>
{orglen > 1 && (
<div
className="edit
absolute top-0 right-0 mr-1 text-[9px] text-slate-400"
@ -538,6 +539,7 @@ const SitePicker = ({
>
Drag me
</div>
)}
<div
className="edit px-1 bg-blue-50 border-l-4 border-blue-300 text-blue-400 hover:bg-blue-500 hover:text-white absolute inset-0 top-auto"
onClick={(e) => {