perf: 优化登陆

pull/8457/head
ibuler 2022-06-21 19:06:06 +08:00
parent 2366da1485
commit 8f59bb2a48
2 changed files with 6 additions and 14 deletions

View File

@ -33,30 +33,26 @@
} }
.form-group { .form-group {
margin-bottom: 30px; margin-bottom: 40px;
margin-top: 10px; margin-top: 10px;
} }
.auth-methods .form-group, .addition .form-group, .has-error .form-group { .addition .form-group, .has-error .form-group {
margin-bottom: 20px; margin-bottom: 20px;
margin-top: 10px; margin-top: 10px;
} }
.form-group.auto-login { .auth-methods.has-error .form-group, .auth-methods.addition .form-group {
margin-bottom: 10px;
}
.auth-methods.addition .form-group {
margin-bottom: 15px; margin-bottom: 15px;
margin-top: 5px; margin-top: 5px;
} }
.auth-methods.has-error .form-group, .addition.has-error .form-group { .has-error.addition .form-group {
margin-bottom: 20px; margin-bottom: 20px;
margin-top: 5px; margin-top: 5px;
} }
.auth-methods.has-error.addition .form-group { .auth-methods.addition.has-error .form-group {
margin-bottom: 10px; margin-bottom: 10px;
margin-top: 5px; margin-top: 5px;
} }
@ -120,10 +116,6 @@
border-right: none; border-right: none;
} }
.more-login-item:hover {
color: #334554;
}
.select-con { .select-con {
width: 35%; width: 35%;
} }

View File

@ -178,7 +178,7 @@ class UserLoginView(mixins.AuthMixin, FormView):
'logo': static('img/login_feishu_logo.png') 'logo': static('img/login_feishu_logo.png')
} }
] ]
return [method for method in auth_methods if method['enabled']] return [method for method in auth_methods]
@staticmethod @staticmethod
def get_support_langs(): def get_support_langs():