Fixes bug on sidebar last line
This commit is contained in:
parent
686ff0d633
commit
4a4fabcfd1
|
@ -53,10 +53,14 @@
|
|||
<!-- END OF MOBILE MENU -->
|
||||
|
||||
<!-- Sidebar Menu -->
|
||||
<ul class="nav" *ngFor="let groupMenuItem of groupMenuItems; last as isLast; first as isFirst"
|
||||
<ul class="nav" *ngFor="let groupMenuItem of groupMenuItems; last as isLast; first as isFirst; let i = index"
|
||||
[class.nav-list-item]="showItem(groupMenuItem)">
|
||||
<div *ngIf="showItem(groupMenuItem);">
|
||||
<div class="sidebarSubtitle">
|
||||
<hr *ngIf="!isFirst">
|
||||
<div *ngIf="isFirst" class="sidebarSubtitle firstSubtitle">
|
||||
<p>{{groupMenuItem.title | translate}}</p>
|
||||
</div>
|
||||
<div *ngIf="!isFirst" class="sidebarSubtitle">
|
||||
<p>{{groupMenuItem.title | translate}}</p>
|
||||
</div>
|
||||
<li routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}" *ngFor="let groupMenuRoute of groupMenuItem.routes"
|
||||
|
@ -67,7 +71,6 @@
|
|||
<p>{{groupMenuRoute.title | translate}}</p>
|
||||
</a>
|
||||
</li>
|
||||
<hr *ngIf="!isLast && !groupMenuItem.requiresAdmin">
|
||||
</div>
|
||||
</ul>
|
||||
<!-- Sidebar Footer -->
|
||||
|
|
|
@ -9,7 +9,7 @@ $mat-card-header-size: 30px !default;
|
|||
}
|
||||
|
||||
.nav-list-item {
|
||||
margin-top: 20px;
|
||||
// margin-top: 20px;
|
||||
}
|
||||
|
||||
.login {
|
||||
|
@ -19,3 +19,7 @@ $mat-card-header-size: 30px !default;
|
|||
.login-label {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.firstSubtitle {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue