diff --git a/alcs-frontend/src/app/features/search/search.component.ts b/alcs-frontend/src/app/features/search/search.component.ts index c5b5f4a2c1..d810154f84 100644 --- a/alcs-frontend/src/app/features/search/search.component.ts +++ b/alcs-frontend/src/app/features/search/search.component.ts @@ -213,7 +213,7 @@ export class SearchComponent implements OnInit, OnDestroy { if (element) { element.scrollIntoView({ behavior: 'smooth', - block: 'center', + block: 'start', inline: 'center', }); } diff --git a/portal-frontend/src/app/features/public/search/public-search.component.ts b/portal-frontend/src/app/features/public/search/public-search.component.ts index 114fc7b6a6..14615fb9a1 100644 --- a/portal-frontend/src/app/features/public/search/public-search.component.ts +++ b/portal-frontend/src/app/features/public/search/public-search.component.ts @@ -209,6 +209,9 @@ export class PublicSearchComponent implements OnInit, OnDestroy { // push tab activation to next render cycle, after the tabGroup is rendered setTimeout(() => { this.setActiveTab(); + setTimeout(() => { + scrollToElement({ id: `results`, center: false }); + }); }); }