diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-06-30 15:49:07 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-06-30 15:49:07 +1000 |
| commit | 04addecabb1fb68c9e855fe7283f224d281ff244 (patch) | |
| tree | b7e640a9f303fc5a1cde5c8ec67ea63affdc1e6d /src/components | |
| parent | 88b789c466c079a7b02cb0acb30f680b91dc8880 (diff) | |
Prevent text-jump before/after tutorial stage 1
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/TutorialPane.vue | 4 |
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> |
