From f66ce45093a86f3e4e66186379d99cfb8b8708d0 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Thu, 30 Jun 2022 15:49:07 +1000
Subject: Prevent text-jump before/after tutorial stage 1

---
 src/components/TutorialPane.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/TutorialPane.vue')

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>
-- 
cgit v1.2.3

