Skip to content

Commit 40bbf04

Browse files
committed
layout fix + off-by-1 for students
1 parent b19e6a4 commit 40bbf04

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

frontend/src/app/components/assignment/assignment.component.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,6 @@
6060
.inline {
6161
display: flex;
6262
flex-direction: row;
63+
width: 100%;
64+
justify-content: center;
6365
}

frontend/src/app/components/assignment/assignment.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,12 @@ export class AssignmentComponent implements OnInit {
192192
progressObservable.subscribe(
193193
(res) => {
194194
this.progress = res;
195-
this.step = this.progress.step;
195+
this.step = this.progress.step - 1;
196196
this.furthestStep = this.progress.step; // furthest step is always returned by progress
197197
this.alreadySubmitted = this.step < this.furthestStep
198198
this.maxStep = this.progress.maxStep;
199199
this.loading = false;
200+
console.log(this.step, this.furthestStep, this.maxStep)
200201
}
201202
)
202203
}

0 commit comments

Comments
 (0)