diff --git a/src/app/help/faq/faq.component.html b/src/app/help/faq/faq.component.html index 3696e692..79475e44 100644 --- a/src/app/help/faq/faq.component.html +++ b/src/app/help/faq/faq.component.html @@ -82,7 +82,7 @@

Frequently Asked Questions

-

{{section.name}}

+

{{section.name}}

diff --git a/src/app/help/faq/faq.component.scss b/src/app/help/faq/faq.component.scss index 45cc60c0..992ac477 100644 --- a/src/app/help/faq/faq.component.scss +++ b/src/app/help/faq/faq.component.scss @@ -39,6 +39,10 @@ height: 45px; text-align: center; } +.search-title-header { + scroll-margin-top: 3em; +} + .no-padding { padding: 0px !important; margin: 0px !important; @@ -50,7 +54,7 @@ text-align: center; } .panel-group { - margin-bottom: 40px; + margin-bottom: 3em; } .panel-heading button{ diff --git a/src/app/help/faq/faq.component.ts b/src/app/help/faq/faq.component.ts index 554065b2..8b9e0860 100644 --- a/src/app/help/faq/faq.component.ts +++ b/src/app/help/faq/faq.component.ts @@ -79,11 +79,13 @@ export class FaqComponent extends BaseComponent implements OnInit { * window scroll to selected ID * @param ID */ - scroll(ID) { + scroll(ID: string) { const element = document.getElementById(ID); - $('html, body').animate({ - scrollTop: $(element).offset().top - 80 - }); + if (element) { + element.scrollIntoView({ + behavior: 'smooth' + }) + } } /**