Преглед изворни кода

fix: #2981 full screen button not works

Yifei Zhang пре 1 година
родитељ
комит
f54db695af
1 измењених фајлова са 1 додато и 2 уклоњено
  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();