Skip to content

Commit

Permalink
fix button
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevie-Ray committed Aug 14, 2023
1 parent 35fd312 commit ed642b2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/pages/workouts/WorkoutsDetailPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ const onScroll = () => {
startWorkoutButton.value = window.scrollY > 250
}
const goToTimer = () => {
router.push(`/workouts/${workout.value.id}/timer`)
}
const rules = {
number: (v) => !v.isNaN || 'NaN',
required: (v) => !!v || 'This field is required',
Expand Down Expand Up @@ -334,7 +338,7 @@ useHead({
</template>
<template #default>
<v-container v-scroll="onScroll">
<v-container>
<v-row>
<v-col cols="12">
<div v-if="workout">
Expand Down Expand Up @@ -972,15 +976,17 @@ useHead({
</v-col>
</v-row>
<div v-show="!editMode" class="fab text-end">
<div v-show="!editMode" v-scroll="onScroll" class="fab text-end">
<div class="mx-4">
<v-fab-transition>
<v-btn
v-show="startWorkoutButton"
:to="`/workouts/${workout.id}/timer`"
size="x-large"
rounded="lg"
@click="goToTimer"
>
{{ t('Start workout') }}
</v-btn>
</v-fab-transition>
</div>
Expand All @@ -1002,7 +1008,7 @@ useHead({
.fab {
bottom: 56px;
z-index: 1004;
z-index: 1007;
transform: translateY(0%);
position: fixed;
height: 80px;
Expand All @@ -1011,7 +1017,7 @@ useHead({
pointer-events: none;
.v-btn {
background-color: rgb(var(--v-theme-accent));
z-index: 1005;
z-index: 1008;
--v-btn-height: 56px;
pointer-events: initial;
}
Expand Down

0 comments on commit ed642b2

Please sign in to comment.