mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
Merge pull request #1 from snow-jallen/fix-rubric-column-layout
Fix rubric layout: points left, description right
This commit is contained in:
@@ -75,15 +75,14 @@ export default function AssignmentPreview({
|
|||||||
{extraPoints !== 0 && (
|
{extraPoints !== 0 && (
|
||||||
<h5 className="text-center">{extraPoints} Extra Credit Points</h5>
|
<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) => (
|
{assignment.rubric.map((rubricItem, i) => (
|
||||||
<Fragment key={rubricItem.label + i}>
|
<Fragment key={rubricItem.label + i}>
|
||||||
<div className="text-end pe-3 col-span-2">{rubricItem.label}</div>
|
<div className="text-end pe-1">
|
||||||
<div>
|
{rubricItemIsExtraCredit(rubricItem) ? "Extra Credit" : ""}
|
||||||
{rubricItem.points}
|
|
||||||
|
|
||||||
{rubricItemIsExtraCredit(rubricItem) ? " - Extra Credit" : ""}
|
|
||||||
</div>
|
</div>
|
||||||
|
<div className="text-end pe-3">{rubricItem.points}</div>
|
||||||
|
<div className="col-span-2">{rubricItem.label}</div>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user