Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit f19fd1f

Browse files
Hubert KosterHubert Koster
authored andcommitted
chore: fixing issues
1 parent 168334b commit f19fd1f

File tree

14 files changed

+81
-100
lines changed

14 files changed

+81
-100
lines changed

src/components/CustomCheckbox/custom_checkbox.module.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
.customCheckboxContainer {
44
display: flex;
5-
align-items: center;
65
justify-content: center;
76
position: relative;
87
min-width: rem(1.6);
98
padding-top: rem(0.8);
109
z-index: 0;
1110
margin-bottom: auto;
11+
@media screen and (min-width: 992px) {
12+
align-items: center;
13+
}
1214
label {
1315
cursor: pointer;
1416
margin-left: rem(1.5);

src/features/dashboard/components/AppForm/__tests__/app-form.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ describe('App Form', () => {
201201
const submitButton = screen.getByText('Register Application');
202202

203203
const authURLInput = screen.getByRole('textbox', {
204-
name: 'Authorization URL (optional)',
204+
name: 'Authorisation URL (optional)',
205205
});
206206

207207
await userEvent.type(authURLInput, 'http:invalidAUTHurl.com');
@@ -290,7 +290,7 @@ describe('App Form', () => {
290290
});
291291

292292
const appRedirectUrlInput = screen.getByRole<HTMLInputElement>('textbox', {
293-
name: 'Authorization URL (optional)',
293+
name: 'Authorisation URL (optional)',
294294
});
295295

296296
const appVerificationUrlInput = screen.getByRole<HTMLInputElement>('textbox', {

src/features/dashboard/components/AppForm/app-form.module.scss

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ fieldset .customTextInput:last-child {
9090
display: flex;
9191
flex-direction: column;
9292
margin-bottom: rem(2.5);
93-
.scopesWrapper {
94-
padding-left: rem(1.6);
93+
@media screen and (min-width: 992px) {
94+
.scopesWrapper {
95+
margin-left: rem(1.6);
96+
}
9597
}
9698
}
9799
.disableTokenDropdown {
@@ -112,23 +114,37 @@ fieldset .customTextInput:last-child {
112114
margin-bottom: rem(2);
113115
}
114116
.formHeaderContainer {
117+
font-size: rem(1.4);
115118
display: flex;
116119
padding: rem(1) 0;
117120
gap: rem(1);
118121
margin-top: rem(1.5);
119122
flex-direction: column;
123+
120124
.subHeading {
121-
padding-left: rem(1);
125+
margin-left: rem(1);
122126
}
123127
.formsubHeading {
124-
padding: rem(1.6);
128+
margin-left: rem(1.6);
125129
display: inline-block;
130+
p span {
131+
@media screen and (min-width: 992px) {
132+
margin-left: rem(4.5);
133+
display: block;
134+
}
135+
}
126136
}
127137
.wrapperHeading {
128-
padding-left: rem(1.6);
138+
margin-left: rem(1.6);
129139
}
130-
.markup {
131-
margin-bottom: rem(1);
140+
}
141+
.markup {
142+
margin-bottom: rem(1);
143+
span {
144+
font-size: rem(1.2);
145+
@media screen and (min-width: 992px) {
146+
font-size: rem(1.4);
147+
}
132148
}
133149
}
134150
}
@@ -165,20 +181,24 @@ fieldset .customTextInput:last-child {
165181
.customCheckboxWrapper {
166182
display: flex;
167183
gap: rem(1);
184+
font-size: rem(1.2);
185+
@media screen and (min-width: 992px) {
186+
font-size: rem(1.4);
187+
}
168188

169189
label {
170190
cursor: pointer;
171191
}
172192
}
173193

174194
.termsOfConditionRegister {
175-
margin-left: rem(4);
176-
margin-top: rem(6);
195+
font-size: rem(1);
196+
text-align: center;
177197
}
178198

179199
.buttons {
180200
display: flex;
181-
gap: rem(1);
201+
gap: rem(2.4);
182202
}
183203

184204
.errorAppname {

src/features/dashboard/components/AppForm/index.tsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,15 @@ const AppForm = ({
205205
</Text>
206206
<br />
207207
<Text as='span' type='paragraph-1' className={styles.formsubHeading}>
208-
<b>NOTE: Markup is only available for real accounts</b>
208+
<p>
209+
<b>
210+
Note: Markup is only available for real accounts.{' '}
211+
<span>
212+
Create a real account using new_account_real or new_account_maltainvest API
213+
calls
214+
</span>
215+
</b>
216+
</p>
209217
</Text>
210218
</div>
211219
</div>
@@ -260,14 +268,14 @@ const AppForm = ({
260268
type='text'
261269
placeholder=' '
262270
/>
263-
<label htmlFor='app_redirect_uri'>Authorization URL (optional)</label>
271+
<label htmlFor='app_redirect_uri'>Authorisation URL (optional)</label>
264272
</div>
265273
<Text
266274
as='p'
267275
type='paragraph-2'
268276
className={`${styles.helperText} ${styles.formsubHeading}`}
269277
>
270-
*Please note that this URL will be used as the OAuth redirect URL for the OAuth
278+
Please note that this URL will be used as the OAuth redirect URL for the OAuth
271279
authorization.
272280
</Text>
273281
{errors && errors?.redirect_uri && (
@@ -287,6 +295,11 @@ const AppForm = ({
287295
placeholder=' '
288296
/>
289297
<label htmlFor='app_verification_uri'>Verification URL (optional)</label>
298+
<Text
299+
as='p'
300+
type='paragraph-2'
301+
className={`${styles.helperText} ${styles.formsubHeading}`}
302+
></Text>
290303
</div>
291304
{errors && errors.verification_uri && (
292305
<span className='error-message'>{errors.verification_uri.message}</span>

src/features/dashboard/components/AppsTable/cells.module.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
@mixin actionIcon {
44
background-repeat: no-repeat;
55
background-position: center;
6-
background-size: rem(2);
6+
background-size: rem(1.8);
77
cursor: pointer;
8-
padding: rem(2) rem(2);
8+
padding: rem(1.8) rem(1.8);
99
border-radius: 100%;
1010
}
1111

@@ -21,7 +21,6 @@
2121

2222
.appActions {
2323
display: flex;
24-
gap: rem(2);
2524
margin: rem(3);
2625
justify-content: center;
2726
}

src/features/dashboard/components/Dialogs/UpdateAppDialog/update-app-dialog.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
width: 80vw;
77

88
.update_app_content {
9-
margin: rem(2);
9+
margin: rem(1);
1010
}
1111
}

src/features/dashboard/components/RestrictionsAppname/RestrictionsAppname.module.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
@use 'src/styles/utility' as *;
22

33
.restrictions {
4+
display:flex;
5+
flex-direction: column;
6+
gap: rem(0.8);
47
font-size: rem(1.2);
58
font-weight: 400;
69
line-height: rem(1.8);

src/features/dashboard/components/RestrictionsAppname/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import styles from './RestrictionsAppname.module.scss';
33

44
const RestrictionsAppname = () => {
55
return (
6-
<ol className={styles.restrictions}>
6+
<ul className={styles.restrictions}>
77
<li>Only alphanumeric characters with spaces and underscores are allowed.</li>
88
<li>The name can contain up to 48 characters.</li>
99
<li>Duplicate token names aren’t allowed.</li>
1010
<li>The name cannot contain “Binary”, “Deriv”, or similar words.</li>
11-
</ol>
11+
</ul>
1212
);
1313
};
1414

src/features/dashboard/components/Table/scopes.cell.module.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
.scope {
44
display: inline-block;
5-
border: 1.6px solid var(--ifm-color-emphasis-400);
5+
border: rem(0.1) solid var(--ifm-color-emphasis-400);
66
border-radius: 100vw; // pill shaped
7-
padding: rem(0.25) rem(1);
7+
padding: rem(0.2) rem(0.8);
88
font-size: rem(1.2);
99
margin: rem(0.5);
1010
color: var(--ifm-color-emphasis-700);
1111
}
1212

1313
.adminScope {
14-
border: 1.6px solid var(--ifm-color-primary);
15-
color: var(--ifm-color-primary);
14+
border: rem(0.1) solid var(--admin-border);
15+
color: var(--admin-text);
1616
}

src/features/dashboard/components/TokenNameRestrictions/TokenNameRestrictions.module.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
@use 'src/styles/utility' as *;
22

33
.tokenrestrictions {
4-
font-size: rem(1.4);
4+
display:flex;
5+
flex-direction: column;
6+
gap: rem(0.8);
7+
font-size: rem(1.2);
58
font-weight: 400;
69
line-height: 18px;
710
padding-left: rem(2.8);

0 commit comments

Comments
 (0)