Skip to content

Commit

Permalink
[#944] Differentiate full and partial credit when group is merged (#2089
Browse files Browse the repository at this point in the history
)

Currently, when viewing individual contributions, full and partial
credit are differentiated with dark and light green colors. However,
this distinction is not applied when the group is merged, potentially
causing confusion for users.

Let's introduce a clear differentiation between full and partial credit
when viewing a merged group.
  • Loading branch information
SkyBlaise99 committed Jan 27, 2024
1 parent c85423e commit e8cb72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/c-segment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default defineComponent({
return {
isOpen: (this.segment.knownAuthor !== null) || this.segment.lines.length < 5 as boolean,
canOpen: (this.segment.knownAuthor === null) && this.segment.lines.length > 4 as boolean,
transparencyValue: '30' as string,
transparencyValue: (this.segment.isFullCredit ? '50' : '20') as string,
};
},
computed: {
Expand Down

0 comments on commit e8cb72a

Please sign in to comment.