mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
Fix rubric layout: points left, description right
Reorder rubric columns so points appear on the left and the description is left-aligned on the right. Extra credit gets its own dedicated column. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -75,15 +75,14 @@ export default function AssignmentPreview({
|
||||
{extraPoints !== 0 && (
|
||||
<h5 className="text-center">{extraPoints} Extra Credit Points</h5>
|
||||
)}
|
||||
<div className="grid grid-cols-3">
|
||||
<div className="grid grid-cols-4">
|
||||
{assignment.rubric.map((rubricItem, i) => (
|
||||
<Fragment key={rubricItem.label + i}>
|
||||
<div className="text-end pe-3 col-span-2">{rubricItem.label}</div>
|
||||
<div>
|
||||
{rubricItem.points}
|
||||
|
||||
{rubricItemIsExtraCredit(rubricItem) ? " - Extra Credit" : ""}
|
||||
<div className="text-end pe-1">
|
||||
{rubricItemIsExtraCredit(rubricItem) ? "Extra Credit" : ""}
|
||||
</div>
|
||||
<div className="text-end pe-3">{rubricItem.points}</div>
|
||||
<div className="col-span-2">{rubricItem.label}</div>
|
||||
</Fragment>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user