This commit is contained in:
Rizky 2024-02-05 10:35:19 +07:00
parent 2bc92a54d6
commit 67a768febf
2 changed files with 16 additions and 6 deletions

View File

@ -23,7 +23,7 @@ export default page({
w.isEditor = true;
if (!edInitSync(p)) {
if (!edInitSync(p) && !p.sync) {
return <Loading note="connecting-ws" />;
}

View File

@ -43,8 +43,12 @@ export const EdBase = () => {
<div className={cx("flex flex-col flex-1", style)}>
<div className="flex justify-between"></div>
<div className="flex flex-1 items-stretch">
{p.status === "ready" && (
<>
<EdLeft />
<EdPane type="left" min_size={200} />
</>
)}
<div className="flex flex-1 flex-col items-stretch">
<EdMid />
<div
@ -53,9 +57,15 @@ export const EdBase = () => {
p.mode === "mobile" ? mobileCSS : "bg-white"
)}
>
{p.status !== "ready" ? (
<Loading note={`page-${p.status}`} />
) : (
<>
<EdMain />
<EdPane type="right" min_size={240} />
<EdRight />
</>
)}
</div>
</div>
</div>