Skip to content

Commit

Permalink
fix(frontend): add link on logo text
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
LMaxence and LMaxence authored Jan 25, 2022
1 parent 333f13b commit 6d7274a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Ombi/ClientApp/src/app/my-nav/my-nav.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
9 changes: 9 additions & 0 deletions src/Ombi/ClientApp/src/app/my-nav/my-nav.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6d7274a

Please # to comment.