fix: #2981 full screen button not works

This commit is contained in:
Yifei Zhang 2023-10-10 11:54:25 +08:00 committed by GitHub
parent f21f922160
commit f54db695af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -128,8 +128,7 @@ function Screen() {
const isHome = location.pathname === Path.Home; const isHome = location.pathname === Path.Home;
const isAuth = location.pathname === Path.Auth; const isAuth = location.pathname === Path.Auth;
const isMobileScreen = useMobileScreen(); const isMobileScreen = useMobileScreen();
const shouldTightBorder = const shouldTightBorder = getClientConfig()?.isApp || (config.tightBorder && !isMobileScreen);
config.tightBorder && !isMobileScreen && getClientConfig()?.isApp;
useEffect(() => { useEffect(() => {
loadAsyncGoogleFont(); loadAsyncGoogleFont();