Remove virtualScroll for favorites list

This commit is contained in:
Thomas Rittson 2021-06-03 08:50:36 +10:00
parent c12ceb4877
commit d71219caa9
1 changed files with 110 additions and 112 deletions

View File

@ -23,14 +23,13 @@
</ng-container> </ng-container>
</div> </div>
<ng-container *ngIf="ciphers && ciphers.length && !showSearching()"> <ng-container *ngIf="ciphers && ciphers.length && !showSearching()">
<cdk-virtual-scroll-viewport itemSize="46">
<div class="box list" *ngIf="favoriteCiphers"> <div class="box list" *ngIf="favoriteCiphers">
<div class="box-header"> <div class="box-header">
{{'favorites' | i18n}} {{'favorites' | i18n}}
<span class="flex-right">{{favoriteCiphers.length}}</span> <span class="flex-right">{{favoriteCiphers.length}}</span>
</div> </div>
<div class="box-content"> <div class="box-content">
<app-cipher-row *cdkVirtualFor="let favoriteCipher of favoriteCiphers" [cipher]="favoriteCipher" <app-cipher-row *ngFor="let favoriteCipher of favoriteCiphers" [cipher]="favoriteCipher"
title="{{'viewItem' | i18n}}" (onSelected)="selectCipher($event)" title="{{'viewItem' | i18n}}" (onSelected)="selectCipher($event)"
(launchEvent)="launchCipher($event)"></app-cipher-row> (launchEvent)="launchCipher($event)"></app-cipher-row>
</div> </div>
@ -141,7 +140,6 @@
</a> </a>
</div> </div>
</div> </div>
</cdk-virtual-scroll-viewport>
</ng-container> </ng-container>
<ng-container *ngIf="showSearching()"> <ng-container *ngIf="showSearching()">
<div class="no-items" *ngIf="!ciphers || !ciphers.length"> <div class="no-items" *ngIf="!ciphers || !ciphers.length">