Browse Source

fix: #2981 full screen button not works

Yifei Zhang 1 year ago
parent
commit
f54db695af
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/components/home.tsx

+ 1 - 2
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();