diff --git a/src/GradingMenuBar.js b/src/GradingMenuBar.js index d3633891..e150271c 100644 --- a/src/GradingMenuBar.js +++ b/src/GradingMenuBar.js @@ -238,7 +238,9 @@ export class ModalMenuBar extends React.Component { const exitAction = this.props.exitAction; const text = this.props.text; return ( -
diff --git a/src/PrinterFriendlyAssignmentView.js b/src/PrinterFriendlyAssignmentView.js index a725292d..a22ad1c8 100644 --- a/src/PrinterFriendlyAssignmentView.js +++ b/src/PrinterFriendlyAssignmentView.js @@ -2,6 +2,7 @@ import React from 'react'; import { aggregateStudentWork, calculateGradingOverview } from './TeacherInteractiveGrader.js'; import { StudentWork } from './SolutionGrader.js'; +const ASSIGNMENT_NAME = 'ASSIGNMENT_NAME'; const PROBLEMS = 'PROBLEMS'; const PROBLEM_NUMBER = 'PROBLEM_NUMBER'; @@ -11,28 +12,29 @@ export default class PrinterFriendlyAssignmentView extends React.Component { const assignment = this.props.assignment; return ( -
-
- Only submit a PDF to your instructor if requested, the regular save feature for Free Math that produces a .math file should be preferred in most cases. -
-
- { assignment[PROBLEMS].map( - (problem => { - return ( -
-

Problem {problem[PROBLEM_NUMBER]}

- -
-
-
-
-
- ) - }) - )} -
-
+
+
+ Only submit a PDF to your instructor if requested, the regular save feature for Free Math that produces a .math file should be preferred in most cases. +
+

{assignment[ASSIGNMENT_NAME]}

+

Created using Free Math (freemathapp.org)

+
+ { assignment[PROBLEMS].map( + (problem => { + return ( +
+

Problem {problem[PROBLEM_NUMBER]}

+ +
+
+
+
+
+ ) + }) + )} +
+
); } } diff --git a/src/index.css b/src/index.css index 23cbc1a3..afac4ee0 100644 --- a/src/index.css +++ b/src/index.css @@ -835,3 +835,13 @@ span.solution-step { margin: 5px 5px 5px 5px; padding: 5px 5px 5px 5px; } + +@media print { + .noprint { + display: none !important; + } + .whiteprint { + background-color: white; + color: black; + } +}