Skip to content

Commit

Permalink
Center and shadow model form on models/create route
Browse files Browse the repository at this point in the history
  • Loading branch information
romeonicholas committed Nov 1, 2023
1 parent 3796d0b commit 545fcf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
~ SPDX-License-Identifier: Apache-2.0
-->

<div class="wrapper">
<div class="wrapper flex justify-center">
<mat-horizontal-stepper
[ngClass]="hasRoute('models/create') ? 'rounded-md shadow-md' : ''"
class="w-[680px]"
(selectionChange)="onStepChange($event)"
linear
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ export class CreateModelComponent implements OnInit {
this.stepper.previous();
}
}

hasRoute(route: string) {
return this.router.url.includes(route);
}
}

export type CreateModelStep =
Expand Down

0 comments on commit 545fcf6

Please sign in to comment.