Skip to content

Commit

Permalink
fix page transition star resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
toBeOfUse committed Feb 13, 2024
1 parent 34a7374 commit 37269f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public-frontend/src/components/stars.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default {
mounted() {
this.circles = this.getRandomCircles(window.location.pathname == "/");
this.$router.afterEach((to) => {
document.body.scrollTop = 0;
this.circles = [];
this.$nextTick(() => {
this.circles = this.getRandomCircles(to.path == "/");
Expand Down

0 comments on commit 37269f2

Please sign in to comment.