diff --git a/src/common/config/public/ClientConfig.ts b/src/common/config/public/ClientConfig.ts index f44dd7c2..78826f16 100644 --- a/src/common/config/public/ClientConfig.ts +++ b/src/common/config/public/ClientConfig.ts @@ -69,7 +69,7 @@ export class AutoCompleteItemsPerCategoryConfig { }, description: $localize`Maximum number autocomplete items shown at once. If there is not enough items to reach this value, it takes upto double of the individual items.` }) - maxItems: number = 30; + maxItems: number = 20; @ConfigProperty({ type: 'unsignedInt', diff --git a/src/frontend/app/ui/gallery/search/autocomplete.service.ts b/src/frontend/app/ui/gallery/search/autocomplete.service.ts index 8715e8a2..2dcd8104 100644 --- a/src/frontend/app/ui/gallery/search/autocomplete.service.ts +++ b/src/frontend/app/ui/gallery/search/autocomplete.service.ts @@ -42,13 +42,13 @@ export class AutoCompleteService { this.keywords.push(this.searchQueryParserService.keywords.and); this.keywords.push(this.searchQueryParserService.keywords.or); - for (let i = 0; i < 10; i++) { + for (let i = 0; i < 5; i++) { this.keywords.push( i + '-' + this.searchQueryParserService.keywords.NSomeOf + ':( )' ); } - for (let i = 1; i < 5; i++) { + for (let i = 1; i < 3; i++) { this.keywords.push( this.searchQueryParserService.keywords.lastNDays.replace(/%d/g, i.toString()) + ':' );