mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
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>
This commit is contained in:
parent
333f13bbfb
commit
6d7274a94e
2 changed files with 15 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue