From 67a768febfea8610fc7dd1c85fffbe4d68deea56 Mon Sep 17 00:00:00 2001 From: Rizky Date: Mon, 5 Feb 2024 10:35:19 +0700 Subject: [PATCH] wip fix --- app/web/src/base/page/ed.tsx | 2 +- app/web/src/nova/ed/ed-base.tsx | 20 +++++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/app/web/src/base/page/ed.tsx b/app/web/src/base/page/ed.tsx index 4bac88a8..675b31b8 100644 --- a/app/web/src/base/page/ed.tsx +++ b/app/web/src/base/page/ed.tsx @@ -23,7 +23,7 @@ export default page({ w.isEditor = true; - if (!edInitSync(p)) { + if (!edInitSync(p) && !p.sync) { return ; } diff --git a/app/web/src/nova/ed/ed-base.tsx b/app/web/src/nova/ed/ed-base.tsx index 8e528e2b..1d04217a 100644 --- a/app/web/src/nova/ed/ed-base.tsx +++ b/app/web/src/nova/ed/ed-base.tsx @@ -43,8 +43,12 @@ export const EdBase = () => {
- - + {p.status === "ready" && ( + <> + + + + )}
{ p.mode === "mobile" ? mobileCSS : "bg-white" )} > - - - + {p.status !== "ready" ? ( + + ) : ( + <> + + + + + )}