Merge pull request #2983 from Yidadaa/Yidadaa-patch-1

This commit is contained in:
Yifei Zhang
2023-10-10 11:56:24 +08:00
committed by GitHub

View File

@@ -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();