Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
Remove sidenav padding top and reorganize menu entries
Browse files Browse the repository at this point in the history
  • Loading branch information
alereca committed Apr 7, 2021
1 parent be6fe61 commit 8b1f63b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
26 changes: 12 additions & 14 deletions src/app/layout/sidenav-body/sidenav-body.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<mat-nav-list class="mat-upm-shade-2">
<mat-nav-list class="mat-upm-shade-2 nav-list">
<mat-list-item routerLink="/profile" routerLinkActive="active" class="mat-upm-shade-3">
<div class="profile-image">
<!-- Insert profile image instead of mat-icon -->
Expand All @@ -18,6 +18,16 @@
<a>UPM Feed</a>
</mat-list-item>

<mat-list-item routerLink="/users" routerLinkActive="active">
<mat-icon matListIcon>face</mat-icon>
<a>Mis solicitudes</a>
</mat-list-item>

<mat-list-item routerLink="/projects" routerLinkActive="active">
<mat-icon matListIcon>search</mat-icon>
<a>Buscador de Proyectos</a>
</mat-list-item>

<mat-divider></mat-divider>

<mat-list-item routerLink="/about" routerLinkActive="active">
Expand All @@ -41,16 +51,4 @@
</mat-list-item>

<mat-divider></mat-divider>

<mat-list-item routerLink="/users" routerLinkActive="active">
<mat-icon matListIcon>face</mat-icon>
<a>Mis solicitudes</a>
</mat-list-item>

<mat-list-item routerLink="/projects" routerLinkActive="active">
<mat-icon matListIcon>search</mat-icon>
<a>Buscador de Proyectos</a>
</mat-list-item>

<mat-divider></mat-divider>
</mat-nav-list>
</mat-nav-list>
19 changes: 12 additions & 7 deletions src/app/layout/sidenav-body/sidenav-body.component.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
#toggleNavBtn {
margin-left: 1.25rem;
margin-left: 1.25rem;
}

.nav-list {
padding-top: 0;
}

.profile-data {
display: flex;
flex-direction: column;
display: flex;
flex-direction: column;
}

.mat-icon-button ::ng-deep .mat-button-focus-overlay {
display: none;
display: none;
}

.mat-list-item .mat-icon, a {
margin-left: 0.5rem;
.mat-list-item .mat-icon,
a {
margin-left: 0.5rem;
}

.lit-marg-b {
margin-bottom: 0.5rem;
margin-bottom: 0.5rem;
}

0 comments on commit 8b1f63b

Please sign in to comment.