Skip to content

Commit

Permalink
fix: arrow up scrolls all the way to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
maximiliannocker committed Jul 2, 2021
1 parent 4929f18 commit e1fb5d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion frontend/src/layouts/partials/footer-info-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div>
<div
v-if="showScrollButton"
v-scroll-to="'#__nuxt'"
v-scroll-to="'body'"
class="btn-circle btn-circle-footer arrow-up filled"
>
<img src="/icons/ic_arrow.svg" />
Expand All @@ -42,5 +42,10 @@ export default {
default: false,
},
},
methods: {
scrollToTop() {
window.scrollTo({ top: 0 });
},
},
};
</script>
2 changes: 1 addition & 1 deletion frontend/src/layouts/partials/footer-info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div>
<a
v-if="showScrollButton"
v-scroll-to="'#__nuxt'"
v-scroll-to="'body'"
class="btn-circle arrow-up filled btn-circle-footer"
:class="{ 'btn-circle-footer-detail': isWebcomponentRoute }"
>
Expand Down

0 comments on commit e1fb5d9

Please sign in to comment.