Skip to content

Commit

Permalink
adjust min/max width for nav
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckMt committed Feb 22, 2022
1 parent 5bce1a9 commit e6b11f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class VerticalNavResizeComponent implements OnInit {

ngOnInit(): void {
/* this.width = this.startWidth; */
this.toggleStep = this.maxWidth / this.steps;
this.toggleStep = (this.maxWidth - this.minWidth) / this.steps;
if (this.toggleStep === 0) {
this.toggleStep = 1;
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/views/route-map/route-map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export class RouteMapComponent implements OnInit, OnDestroy {
public nav = {
left: {
width: 19,
minWidth: 12,
maxWidth: 40,
minWidth: 16,
maxWidth: 30,
unit: 'rem'
},
right: {
Expand Down

0 comments on commit e6b11f0

Please sign in to comment.