Skip to content

Commit

Permalink
fix: back to top not working on catalog (fixes #119)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed May 15, 2024
1 parent 69d81c8 commit 729288e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/website/src/app/catalog/catalog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { HeaderComponent } from '../shared/components/header.component';
import { FooterComponent } from '../shared/components/footer.component';
import { LoaderComponent } from '../shared/components/loader.component';
import { ChipComponent } from '../shared/components/chip.component';
import { defaultLanguage, githubRepositoryUrl } from '../shared/constants';
import { defaultLanguage, githubRepositoryUrl, mainScrollableId } from '../shared/constants';
import {
addRouteChangeListener,
getQueryParams,
Expand All @@ -25,7 +25,7 @@ import { BehaviorSubject, concat, debounceTime, distinctUntilChanged, map, Obser
<div class="full-viewport">
<app-header logo="images/moaw-logo-full.png" logoUrl="" [links]="links"></app-header>
<div class="content bg-light">
<main class="scrollable">
<main id="${mainScrollableId}" class="scrollable">
<section class="hero">
<div class="container no-sidebar">
<!-- <h1>All Workshops</h1> -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,6 @@ export class FooterComponent {

backToTop() {
scrollToTop(mainScrollableId, true);
scrollToTop(undefined, true);
}
}

0 comments on commit 729288e

Please sign in to comment.