Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pmattmann committed Nov 3, 2024
1 parent 8059636 commit c80d394
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions frontend/src/views/camp/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
</template>

<script>
import { campRoute, periodRoute } from '@/router.js'
import { periodRoute } from '@/router.js'
import ContentCard from '@/components/layout/ContentCard.vue'
import ActivityRow from '@/components/dashboard/ActivityRow.vue'
import { keyBy, groupBy, mapValues } from 'lodash'
Expand Down Expand Up @@ -284,7 +284,6 @@ export default {
})
},
methods: {
campRoute,
periodRoute,
persistRouterState() {
const query = transformValuesToHalId(this.filter)
Expand All @@ -294,19 +293,16 @@ export default {
scrollToToday() {
const element = document.getElementById(this.today.id)
if (element) {
const elementPosition = element.getBoundingClientRect().top
let offsetPosition = elementPosition
let elementPosition = element.getBoundingClientRect().top
if (this.$vuetify.breakpoint.mdAndUp) {
offsetPosition = offsetPosition - 50
elementPosition = elementPosition - 50
} else if (this.$vuetify.breakpoint.smAndUp) {
offsetPosition = offsetPosition + 14
elementPosition = elementPosition + 14
} else {
offsetPosition = offsetPosition - 34
elementPosition = elementPosition - 34
}
window.scrollTo({
top: offsetPosition,
top: elementPosition,
behavior: 'smooth',
})
}
Expand Down

0 comments on commit c80d394

Please sign in to comment.