Skip to content

Commit

Permalink
fix scrol to on list.category.event.index to eventList #186
Browse files Browse the repository at this point in the history
  • Loading branch information
schefbi committed Sep 3, 2024
1 parent de8064f commit 3b32d02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const Router = EmberRouter.extend({
scrollToTimeout(subscriptionProcessId);
} else if (this.currentPath === 'list.category.index' && screen.width <= 960) {
scrollToTimeout('headerCategory');
} else if (this.currentPath === 'list.category.event.index' && screen.width <= 960) {
scrollToTimeout('eventList');
} else if (this.currentPath !== 'list.index') {
scrollToTimeout(rootElement.id);
}
Expand Down
2 changes: 1 addition & 1 deletion app/templates/list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
{{/unless}}

{{! CENTER }}
<div class="{{this.centerWidth}} center-container uk-margin-bottom">
<div id="eventList" class="{{this.centerWidth}} center-container uk-margin-bottom">
{{outlet}}
</div>

0 comments on commit 3b32d02

Please sign in to comment.