From f54db695af55ea925369950be9b1b8988461544b Mon Sep 17 00:00:00 2001 From: Yifei Zhang Date: Tue, 10 Oct 2023 11:54:25 +0800 Subject: [PATCH 1/2] fix: #2981 full screen button not works --- app/components/home.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/components/home.tsx b/app/components/home.tsx index dd22142d7..811cbdf51 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -128,8 +128,7 @@ function Screen() { const isHome = location.pathname === Path.Home; const isAuth = location.pathname === Path.Auth; const isMobileScreen = useMobileScreen(); - const shouldTightBorder = - config.tightBorder && !isMobileScreen && getClientConfig()?.isApp; + const shouldTightBorder = getClientConfig()?.isApp || (config.tightBorder && !isMobileScreen); useEffect(() => { loadAsyncGoogleFont(); From ea59ab51767fc0fe3e7ad611bf2f47fb357ddc11 Mon Sep 17 00:00:00 2001 From: Jason O'Gray <1228915+ograycode@users.noreply.github.com> Date: Tue, 10 Oct 2023 11:24:45 -0400 Subject: [PATCH 2/2] Fix type in sync.ts Simple typo fix. --- app/store/sync.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/store/sync.ts b/app/store/sync.ts index c34ae7b9b..b74f6895f 100644 --- a/app/store/sync.ts +++ b/app/store/sync.ts @@ -101,7 +101,7 @@ export const useSyncStore = createPersistStore( mergeAppState(localState, remoteState); setLocalAppState(localState); } catch (e) { - console.log("[Sync] failed to get remoate state", e); + console.log("[Sync] failed to get remote state", e); } await client.set(config.username, JSON.stringify(localState));