aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-06-30 15:49:07 +1000
committerTerry Truong <terry06890@gmail.com>2022-06-30 18:57:29 +1000
commitf66ce45093a86f3e4e66186379d99cfb8b8708d0 (patch)
treeb7e640a9f303fc5a1cde5c8ec67ea63affdc1e6d
parent88b789c466c079a7b02cb0acb30f680b91dc8880 (diff)
Prevent text-jump before/after tutorial stage 1
-rw-r--r--src/components/TutorialPane.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/TutorialPane.vue b/src/components/TutorialPane.vue
index 07d818a..f8efc61 100644
--- a/src/components/TutorialPane.vue
+++ b/src/components/TutorialPane.vue
@@ -49,11 +49,11 @@
<s-button :style="buttonStyles" @click="onSkipTutorial">Skip</s-button>
</template>
<template v-else>
- <s-button v-if="hidNextPrevOnce || stage > 1" :disabled="stage == 1"
+ <s-button :class="{invisible: !hidNextPrevOnce && stage == 1}" :disabled="stage == 1"
@click="onPrevClick" :style="buttonStyles">
Prev
</s-button>
- <s-button v-if="hidNextPrevOnce || stage > 1"
+ <s-button :class="{invisible: !hidNextPrevOnce && stage == 1}"
@click="stage != lastStage ? onNextClick() : onClose()" :style="buttonStyles">
{{stage != lastStage ? 'Next' : 'Finish'}}
</s-button>