Skip to content

Commit 31d9989

Browse files
authored
Merge pull request #1209 from topcoder-platform/pm-1503_3
fix(PM-1503): Weight column in view scorecard page
2 parents 851a515 + b4c9243 commit 31d9989

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

src/apps/review/src/pages/scorecards/ViewScorecardPage/ScorecardGroups/ScorecardGroups.module.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
.heading {
3939
.groupInfo {
4040
flex-direction: row;
41+
.weight {
42+
text-align: end;
43+
}
4144
.name {
4245
margin-bottom: 0px;
4346
}

src/apps/review/src/pages/scorecards/ViewScorecardPage/ScorecardGroups/ScorecardGroups.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const ScorecardGroups: FC<ScorecardGroupsProps> = (props: ScorecardGroupsProps)
1919
<div className={styles.groupNumber}>{`Group ${index + 1}`}</div>
2020
<div className={styles.groupInfo}>
2121
<div className={styles.name}>{group.name}</div>
22-
<div>{group.weight}</div>
22+
<div className={styles.weight}>{group.weight}</div>
2323
</div>
2424
</div>
2525
<ScorecardSections sections={group.sections} />

src/apps/review/src/pages/scorecards/ViewScorecardPage/ScorecardSections/ScorecardSections.module.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@
8484
.name {
8585
margin-bottom: 0px;
8686
}
87+
.weight {
88+
text-align: end;
89+
}
8790
}
8891
}
8992
.questions {
@@ -98,7 +101,10 @@
98101
}
99102
}
100103
.right {
101-
justify-content: flex-start;
104+
justify-content: flex-end;
105+
.weight {
106+
text-align: end;
107+
}
102108
}
103109
}
104110
}

src/apps/review/src/pages/scorecards/ViewScorecardPage/ScorecardSections/ScorecardSections.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const ScorecardSections: FC<ScorecardSectionsProps> = (props: ScorecardSectionsP
1818
<div>{`Section ${sectionIndex + 1}`}</div>
1919
<div className={styles.sectionInfo}>
2020
<div className={styles.name}>{section.name}</div>
21-
<div>{section.weight}</div>
21+
<div className={styles.weight}>{section.weight}</div>
2222
</div>
2323
</div>
2424
<div className={styles.questions}>
@@ -55,7 +55,7 @@ const ScorecardSections: FC<ScorecardSectionsProps> = (props: ScorecardSectionsP
5555
</div>
5656
</div>
5757
<div className={styles.right}>
58-
<div>{question.weight}</div>
58+
<div className={styles.weight}>{question.weight}</div>
5959
</div>
6060
</div>
6161
))

0 commit comments

Comments
 (0)