Skip to content

Commit 8151422

Browse files
committed
Alignment fixes
1 parent b0e870a commit 8151422

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

src/components/ChallengesComponent/ChallengeList/ChallengeList.module.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
justify-content: space-between;
88
}
99

10+
.col-6 {
11+
flex: 0 0 50%;
12+
max-width: 50%;
13+
}
14+
15+
.col-9 {
16+
flex: 0 0 75%;
17+
max-width: 75%;
18+
}
19+
1020
.dashboardRow {
1121
align-items: flex-end;
1222
}
@@ -151,7 +161,6 @@
151161

152162
.challengeInput {
153163
width: 94% !important;
154-
margin-left: -6px;
155164
}
156165

157166
@-moz-document url-prefix() {

src/components/ChallengesComponent/ChallengeList/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ class ChallengeList extends Component {
366366
!isBillingAccountLoading &&
367367
!isBillingAccountLoadingFailed &&
368368
!isBillingAccountExpired && (
369-
<div className={'col-9'}>
369+
<div className={styles['col-6']}>
370370
<span className={styles.title}>Billing Account: </span>
371371
<span className={styles.active}>ACTIVE</span> &nbsp;{' '}
372372
<span className={styles.title}>Start Date:</span>{' '}
@@ -378,7 +378,7 @@ class ChallengeList extends Component {
378378
!isBillingAccountLoading &&
379379
!isBillingAccountLoadingFailed &&
380380
isBillingAccountExpired && (
381-
<div className={'col-9'}>
381+
<div className={styles['col-6']}>
382382
<span className={styles.title}>Billing Account: </span>
383383
<span className={styles.inactive}>INACTIVE</span> &nbsp;{' '}
384384
<span className={styles.title}>Start Date:</span>{' '}
@@ -389,14 +389,14 @@ class ChallengeList extends Component {
389389
{!dashboard &&
390390
!isBillingAccountLoading &&
391391
isBillingAccountLoadingFailed && (
392-
<div className={'col-9'}>
392+
<div className={styles['col-6']}>
393393
<span className={styles.error}>
394394
Billing Account failed to load
395395
</span>
396396
</div>
397397
)}
398398
{dashboard && (
399-
<div className={'col-6'}>
399+
<div className={styles['col-6']}>
400400
<div className={cn(styles.field, styles.input1)}>
401401
<label htmlFor='project'>Project :</label>
402402
</div>
@@ -419,7 +419,7 @@ class ChallengeList extends Component {
419419
</div>
420420
</div>
421421
)}
422-
<div className={dashboard ? 'col-6' : 'col-3'}>
422+
<div className={styles['col-6']}>
423423
<DebounceInput
424424
className={styles.challengeInput}
425425
minLength={2}
@@ -439,7 +439,7 @@ class ChallengeList extends Component {
439439
</div>
440440
</div>
441441
<div className={styles.row}>
442-
<div className={'col-6'}>
442+
<div className={styles['col-6']}>
443443
<div className={cn(styles.field, styles.input1)}>
444444
<label htmlFor='status'>Challenge Status :</label>
445445
</div>
@@ -465,7 +465,7 @@ class ChallengeList extends Component {
465465
/>
466466
</div>
467467
</div>
468-
<div className={'col-6'}>
468+
<div className={styles['col-6']}>
469469
<div className={cn(styles.field, styles.input1)}>
470470
<label htmlFor='startDate'>Start Date :</label>
471471
</div>
@@ -515,7 +515,7 @@ class ChallengeList extends Component {
515515
</div>
516516
</div>
517517
<div className={styles.row}>
518-
<div className={'col-6'}>
518+
<div className={styles['col-6']}>
519519
<div className={cn(styles.field, styles.input1)}>
520520
<label htmlFor='type'>Challenge Type :</label>
521521
</div>
@@ -538,7 +538,7 @@ class ChallengeList extends Component {
538538
</div>
539539
</div>
540540

541-
<div className={'col-6'}>
541+
<div className={styles['col-6']}>
542542
<div className={cn(styles.field, styles.input1)}>
543543
<label htmlFor='endDate'>End Date :</label>
544544
</div>

src/components/ChallengesComponent/ChallengesComponent.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
display: flex;
2323
justify-content: space-between;
2424
align-items: center;
25-
padding: 0 20px;
25+
padding: 0 30px;
2626

2727
}
2828

0 commit comments

Comments
 (0)