Skip to content

Commit 67744bd

Browse files
committed
UI: 第三方登录框架大小调整
1 parent a1490c4 commit 67744bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/Login/ProviderIcons.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ export const ProviderIcons = (props: Props) => {
114114
const { appConf, afterLoginSuccess } = props;
115115

116116
const handleOauthLogin = (authUrl: string) => {
117-
const w = window.screen.availWidth * 0.4;
118-
const h = window.screen.availHeight * 0.6;
117+
const w = window.screen.availWidth * 0.26;
118+
const h = window.screen.availHeight * 0.46;
119119
const left = (window.screen.availWidth - w) / 2;
120120
const top = (window.screen.availHeight - h) / 2;
121121
window.open(
122122
authUrl,
123123
'newwindow',
124-
`height=${h},width=${w},top=${top},left=${left},toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no'`,
124+
`height=${h},width=${w},top=${top},left=${left},toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no'`,
125125
);
126126
window.onmessage = async (e) => {
127127
const { success, data } = e.data;

0 commit comments

Comments
 (0)