74199: Infinite scroll size changes

This commit is contained in:
Kristof De Langhe
2020-10-22 18:03:32 +02:00
parent 8b2b28df25
commit ade5eb53cc
3 changed files with 3 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ import { DSpaceObject } from '../../../../core/shared/dspace-object.model';
@Component({
selector: 'ds-authorized-collection-selector',
styleUrls: ['../dso-selector.component.scss'],
templateUrl: '../dso-selector.component.html'
})
/**

View File

@@ -9,7 +9,7 @@
<div class="scrollable-menu list-group">
<div
infiniteScroll
[infiniteScrollDistance]="0.2"
[infiniteScrollDistance]="1"
[infiniteScrollThrottle]="300"
[infiniteScrollContainer]="'.scrollable-menu'"
[fromRoot]="true"

View File

@@ -68,7 +68,7 @@ export class DSOSelectorComponent implements OnInit, OnDestroy {
/**
* Default pagination for this feature
*/
defaultPagination = { id: 'dso-selector', currentPage: 1, pageSize: 5 } as any;
defaultPagination = { id: 'dso-selector', currentPage: 1, pageSize: 10 } as any;
/**
* List with search results of DSpace objects for the current query