Skip to content

Commit

Permalink
Camera Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Thamanmuthappa committed Jan 16, 2022
1 parent 134d560 commit 2338924
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/CountDown/CountDown.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
justify-content: center;
align-items: center;
text-align: center;
margin-left: 6px;
margin-right: 6px;
}

.tile > .time {
Expand Down
7 changes: 7 additions & 0 deletions src/components/CountDownModal/CountDownModal.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
justify-content: center;
align-items: center; */
text-align: center !important;
border-radius: 16px !important;
}

.close-modal {
Expand All @@ -11,4 +12,10 @@
font-weight: bold !important;
padding: 8px 20px !important;
border-radius: 4px !important;
margin: 60px;
font-size: 12px !important;
}

.button-div{
margin: 10px 10px 15px 20px;
}
4 changes: 2 additions & 2 deletions src/components/CountDownModal/CountDownModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const CountDownModal = ({ open, onClose, onComplete }) => {
<DialogContent>
<CountDown endTime={Date.now() + 15000} onComplete={onComplete} />
</DialogContent>
<DialogActions>
<Button color="secondary" className="close-modal" onClick={onClose}>
<DialogActions className="button-div">
<Button color="#FFF" className="close-modal" onClick={onClose}>
Go back to the test
</Button>
</DialogActions>
Expand Down
8 changes: 8 additions & 0 deletions src/pages/Student/TestScreen/TestScreen.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@ const TestScreen = (props) => {
className="test-container"
style={{ paddingBottom: "40px", color: "#081220" }}
>
<Webcam
audio={false}
height={0}
ref={webcamRef}
screenshotFormat="image/jpeg"
width={0}
videoConstraints={videoConstraints}
/>
<div className="student-test-details">
<Grid container spacing={3}>
<Grid
Expand Down

0 comments on commit 2338924

Please sign in to comment.