Commit c3392e5b authored by Romain DELEAU's avatar Romain DELEAU

increase max task witdh (10UT max)

parent 091ce411
...@@ -25,12 +25,12 @@ export class TaskComponent implements OnInit { ...@@ -25,12 +25,12 @@ export class TaskComponent implements OnInit {
durationChange(): void { durationChange(): void {
if(this.durationUnit === 'UT') { if(this.durationUnit === 'UT') {
if(this.duration <= 1) { if(this.duration >= 1 && this.duration <= 10) {
this.pieceWidth = (this.duration*400)+'px';
} else if(this.duration > 10) {
this.pieceWidth = '4000px';
} else {
this.pieceWidth = '400px'; this.pieceWidth = '400px';
} else if(this.duration == 2) {
this.pieceWidth = '800px';
} else if(this.duration >= 3) {
this.pieceWidth = '1200px';
} }
} else { } else {
this.pieceWidth = '400px'; this.pieceWidth = '400px';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment