Skip to content

Commit 256d6dd

Browse files
Refactor SignUp styles and update IonContent scroll behavior
- Adjusted padding and margin values in SignUpPage.scss and SignUpForm.scss for better spacing. - Updated IonContent in SignUpPage.tsx to enable vertical scrolling. - Modified error display class in SignUpForm.tsx to include top margin for improved layout.
1 parent 9dbba3a commit 256d6dd

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

frontend/src/pages/Auth/SignUp/SignUpPage.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
height: 100%;
55
display: flex;
66
flex-direction: column;
7-
justify-content: center;
7+
padding-top: 1rem;
88
}
99

1010
.ls-signup-page__form {

frontend/src/pages/Auth/SignUp/SignUpPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const SignUpPage = ({ testid = 'page-signup' }: SignUpPageProps): JSX.Element =>
2626
<ProgressProvider>
2727
<Header title={t('signup', { ns: 'auth' })} />
2828

29-
<IonContent fullscreen className="ion-padding">
29+
<IonContent fullscreen className="ion-padding" scrollY={true}>
3030
<Container className="ls-signup-page__container" fixed>
3131
<SignUpForm className="ls-signup-page__form" />
3232
</Container>

frontend/src/pages/Auth/SignUp/components/SignUpForm.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
padding: 1rem;
33

44
.ls-signup-form__input {
5-
margin-bottom: 16px;
5+
margin-bottom: 1rem;
66
}
77

88
.ls-signup-form__button {
9-
margin-top: 16px;
9+
margin-top: 1rem;
1010
}
1111

1212
&__password-guidelines {
13-
margin-top: -8px;
14-
margin-bottom: 16px;
13+
margin-top: -0.5rem;
14+
margin-bottom: 1rem;
1515
font-size: 0.85rem;
1616

1717
&-header {
18-
margin-bottom: 4px;
18+
margin-bottom: 0.25rem;
1919
font-weight: 500;
2020
}
2121

2222
&-item {
2323
display: flex;
2424
align-items: center;
25-
margin-bottom: 2px;
25+
margin-bottom: 0.125rem;
2626

2727
&-icon {
28-
margin-right: 6px;
28+
margin-right: 0.375rem;
2929
}
3030

3131
&-valid {

frontend/src/pages/Auth/SignUp/components/SignUpForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const SignUpForm = ({ className, testid = 'form-signup' }: SignUpFormProps): JSX
129129
<AuthErrorDisplay
130130
error={error}
131131
showDetails={true}
132-
className="ion-margin-bottom"
132+
className="ion-margin-bottom ion-margin-top"
133133
testid={`${testid}-error`}
134134
/>
135135

0 commit comments

Comments
 (0)