Fixes bug on sidebar last line

This commit is contained in:
apapachristou 2019-06-18 16:51:05 +03:00
parent 686ff0d633
commit 4a4fabcfd1
2 changed files with 11 additions and 4 deletions

View File

@ -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 -->

View File

@ -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;
}