Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function InlineDropRegion({divId, zoneId, emptyWidth, emptyHeight, rootElement,

const draggableDropZone = <span
style={{minHeight: height, minWidth: width}}
className={classNames("d-inline-block cloze-drop-zone", !item && `rounded bg-inline-question border ${isOver ? "border-dark" : "border-light"}`)}
className={classNames("d-inline-block cloze-drop-zone align-bottom", !item && `rounded bg-inline-question border ${isOver ? "border-dark" : "border-light"}`)}
ref={setNodeRef}
>
{item
Expand Down
10 changes: 6 additions & 4 deletions src/app/components/elements/quiz/QuizProgressCommon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,9 @@ export function ResultsTablePartBreakdown({
case "name":
return (item.user?.familyName + ", " + item.user?.givenName).toLowerCase();
case "totalPartPercentage":
return -item.correctQuestionPartsCount;
case "totalAttemptedPartPercentage":
return -(item.correctQuestionPartsCount + item.incorrectQuestionPartsCount);
case "totalQuestionPercentage":
case "totalAttemptedQuestionPercentage":
return 0; // These sorts are not applicable for part breakdown
Expand Down Expand Up @@ -594,8 +596,8 @@ export function ResultsTablePartBreakdown({
{isPhy && (pageSettings?.attemptedOrCorrect === "CORRECT"
? <SortItemHeader<ProgressSortOrder>
className={classNames("correct-attempted-header narrow-header", {"sticky-ca-col": isPhy})}
defaultOrder={"totalQuestionPercentage"}
reverseOrder={"totalQuestionPercentage"}
defaultOrder={"totalPartPercentage"}
reverseOrder={"totalPartPercentage"}
currentOrder={sortOrder} setOrder={toggleSort} reversed={reverseOrder}
label={"Total correct"}
>
Expand All @@ -609,8 +611,8 @@ export function ResultsTablePartBreakdown({
</SortItemHeader>
: <SortItemHeader<ProgressSortOrder>
className={classNames("correct-attempted-header narrow-header", {"sticky-ca-col": isPhy})}
defaultOrder={"totalAttemptedQuestionPercentage"}
reverseOrder={"totalAttemptedQuestionPercentage"}
defaultOrder={"totalAttemptedPartPercentage"}
reverseOrder={"totalAttemptedPartPercentage"}
currentOrder={sortOrder} setOrder={toggleSort} reversed={reverseOrder}
label={"Total attempted"}
>
Expand Down
Loading