fix(frontend): add link on logo text

* feat(frontend): add link on logo text

* fix(frontend): display logo-link only if an url is set

Co-authored-by: Maxence Lecanu <maxence@escape.tech>
pull/4483/head
Maxence Lecanu 3 years ago committed by GitHub
parent 333f13bbfb
commit 6d7274a94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,7 +3,12 @@
[attr.role]="(isHandset$ | async) ? 'dialog' : 'navigation'" [mode]="(isHandset$ | async) ? 'over' : 'side'"
[opened]="!(isHandset$ | async)">
<mat-toolbar class="application-name" id="nav-applicationName">{{applicationName}}</mat-toolbar>
<mat-toolbar class="application-name" id="nav-applicationName">
<a *ngIf="applicationUrl; else noApplicationUrlLogo" class="application-name-link" [href]="applicationUrl">{{applicationName}}</a>
</mat-toolbar>
<ng-template #noApplicationUrlLogo>
{{applicationName}}
</ng-template>
<mat-nav-list>
<span mat-list-item *ngFor="let nav of navItems">

@ -165,6 +165,15 @@
display: flex;
white-space: normal;
word-break: break-word;
.application-name-link {
text-decoration: none;
color: inherit;
&:active, &:hover, &:focus {
color: inherit;
}
}
}
.outer-profile {

Loading…
Cancel
Save