Polish Round 2 (#2411)
This commit is contained in:
parent
ba3e760b31
commit
a2fd87c454
35 changed files with 213 additions and 95 deletions
|
|
@ -30,10 +30,10 @@
|
|||
<div class="active-highlight"></div>
|
||||
<span class="phone-hidden" title="{{title}}">
|
||||
<div>
|
||||
<ng-container *ngIf="imageUrl !== null && imageUrl !== ''; else iconImg">
|
||||
<img class="lazyload img-placeholder" [ngSrc]="imageUrl" width="20" height="20" alt="icon">
|
||||
</ng-container>
|
||||
<ng-template #iconImg><i class="fa {{icon}}" aria-hidden="true"></i></ng-template>
|
||||
<ng-container *ngIf="imageUrl !== null && imageUrl !== ''; else iconImg">
|
||||
<app-image [imageUrl]="imageUrl" width="20px" height="20px"></app-image>
|
||||
</ng-container>
|
||||
<ng-template #iconImg><i class="fa {{icon}}" aria-hidden="true"></i></ng-template>
|
||||
</div>
|
||||
</span>
|
||||
<span class="side-nav-text">
|
||||
|
|
|
|||
|
|
@ -12,12 +12,13 @@ import { filter, map } from 'rxjs';
|
|||
import { NavService } from 'src/app/_services/nav.service';
|
||||
import {takeUntilDestroyed} from "@angular/core/rxjs-interop";
|
||||
import {CommonModule, NgOptimizedImage} from "@angular/common";
|
||||
import {ImageComponent} from "../../../shared/image/image.component";
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-side-nav-item',
|
||||
standalone: true,
|
||||
imports: [CommonModule, RouterLink, NgOptimizedImage],
|
||||
imports: [CommonModule, RouterLink, NgOptimizedImage, ImageComponent],
|
||||
templateUrl: './side-nav-item.component.html',
|
||||
styleUrls: ['./side-nav-item.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue