wip fix
This commit is contained in:
parent
2bc92a54d6
commit
67a768febf
|
|
@ -23,7 +23,7 @@ export default page({
|
||||||
|
|
||||||
w.isEditor = true;
|
w.isEditor = true;
|
||||||
|
|
||||||
if (!edInitSync(p)) {
|
if (!edInitSync(p) && !p.sync) {
|
||||||
return <Loading note="connecting-ws" />;
|
return <Loading note="connecting-ws" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,12 @@ export const EdBase = () => {
|
||||||
<div className={cx("flex flex-col flex-1", style)}>
|
<div className={cx("flex flex-col flex-1", style)}>
|
||||||
<div className="flex justify-between"></div>
|
<div className="flex justify-between"></div>
|
||||||
<div className="flex flex-1 items-stretch">
|
<div className="flex flex-1 items-stretch">
|
||||||
|
{p.status === "ready" && (
|
||||||
|
<>
|
||||||
<EdLeft />
|
<EdLeft />
|
||||||
<EdPane type="left" min_size={200} />
|
<EdPane type="left" min_size={200} />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<div className="flex flex-1 flex-col items-stretch">
|
<div className="flex flex-1 flex-col items-stretch">
|
||||||
<EdMid />
|
<EdMid />
|
||||||
<div
|
<div
|
||||||
|
|
@ -53,9 +57,15 @@ export const EdBase = () => {
|
||||||
p.mode === "mobile" ? mobileCSS : "bg-white"
|
p.mode === "mobile" ? mobileCSS : "bg-white"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
{p.status !== "ready" ? (
|
||||||
|
<Loading note={`page-${p.status}`} />
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
<EdMain />
|
<EdMain />
|
||||||
<EdPane type="right" min_size={240} />
|
<EdPane type="right" min_size={240} />
|
||||||
<EdRight />
|
<EdRight />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue