mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-03-21 20:19:01 +01:00
fix
This commit is contained in:
parent
1e1b420647
commit
8f36b527f7
1 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
<div :class="[$style.pageFooter, { [$style.pageFooterShown]: (page > 0 && page < MAX_PAGE) }]">
|
<div :class="[$style.pageFooter, { [$style.pageFooterShown]: (page > 0 && page < MAX_PAGE) }]" :inert="(page <= 0 && page >= MAX_PAGE)">
|
||||||
<div class="_buttonsCenter">
|
<div class="_buttonsCenter">
|
||||||
<MkButton v-if="initialPage !== page" :disabled="areButtonsLocked" rounded @click="prev"><i class="ti ti-arrow-left"></i> {{ i18n.ts.goBack }}</MkButton>
|
<MkButton v-if="initialPage !== page" :disabled="areButtonsLocked" rounded @click="prev"><i class="ti ti-arrow-left"></i> {{ i18n.ts.goBack }}</MkButton>
|
||||||
<MkButton primary rounded gradate :disabled="!canContinue" data-cy-user-setup-next @click="next">{{ i18n.ts.continue }} <i class="ti ti-arrow-right"></i></MkButton>
|
<MkButton primary rounded gradate :disabled="!canContinue" data-cy-user-setup-next @click="next">{{ i18n.ts.continue }} <i class="ti ti-arrow-right"></i></MkButton>
|
||||||
|
@ -272,7 +272,7 @@ function next() {
|
||||||
|
|
||||||
page.value = findNextTutorialPage();
|
page.value = findNextTutorialPage();
|
||||||
} else {
|
} else {
|
||||||
page.value++;
|
page.value = Math.min(page.value + 1, MAX_PAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
emit('pageChanged', page.value);
|
emit('pageChanged', page.value);
|
||||||
|
@ -304,7 +304,7 @@ function prev() {
|
||||||
|
|
||||||
page.value = findPrevTutorialPage();
|
page.value = findPrevTutorialPage();
|
||||||
} else {
|
} else {
|
||||||
page.value--;
|
page.value = Math.max(page.value - 1, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
emit('pageChanged', page.value);
|
emit('pageChanged', page.value);
|
||||||
|
|
Loading…
Add table
Reference in a new issue