Skip to content

Commit e8ca478

Browse files
feat: fix multiple oauth buttons spacing
1 parent 726b77f commit e8ca478

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

client/packages/lowcoder/src/pages/userAuth/authComponents.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export const ConfirmButton = (props: {
158158
const TermsAndPrivacyContent = styled.div`
159159
display: flex;
160160
align-items: center;
161+
margin-top: 16px;
161162
162163
font-size: 13px;
163164
color: #333333;

client/packages/lowcoder/src/pages/userAuth/register.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ const RegisterContent = styled(FormWrapperMobile)`
3333
display: flex;
3434
flex-direction: column;
3535
margin-bottom: 106px;
36-
37-
button {
38-
margin-bottom: 16px;
39-
}
4036
`;
4137

4238
function UserRegister() {

client/packages/lowcoder/src/pages/userAuth/thirdParty/thirdPartyAuth.tsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,20 @@ import { useSelector } from "react-redux";
1212
import { selectSystemConfig } from "redux/selectors/configSelectors";
1313
import React from "react";
1414
import { messageInstance } from "lowcoder-design";
15-
15+
import styled from "styled-components";
1616
import { trans } from "i18n";
1717
import { geneAuthStateAndSaveParam, getAuthUrl, getRedirectUrl } from "pages/userAuth/authUtils";
1818

19+
const ThirdPartyLoginButtonWrapper = styled.div`
20+
button{
21+
width: 100%;
22+
23+
&:not(:last-child) {
24+
margin-bottom: 16px;
25+
}
26+
}
27+
`;
28+
1929
function ThirdPartyLoginButton(props: {
2030
config: ThirdPartyConfigType;
2131
invitationId?: string;
@@ -116,5 +126,9 @@ export function ThirdPartyAuth(props: {
116126
/>
117127
);
118128
});
119-
return <>{socialLoginButtons}</>;
129+
return (
130+
<ThirdPartyLoginButtonWrapper>
131+
{socialLoginButtons}
132+
</ThirdPartyLoginButtonWrapper>
133+
);
120134
}

0 commit comments

Comments
 (0)