fix: re-add back button (#618)

zio/stable
Joel Drake 2022-12-29 13:21:00 +01:00 committed by GitHub
parent 121c90fc3a
commit 6fdcc558fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -1,9 +1,9 @@
<script setup lang="ts"> <script setup lang="ts">
defineProps<{ defineProps<{
/** /** Show the back button on small screens */
* Show the back button on small screens
*/
backOnSmallScreen?: boolean backOnSmallScreen?: boolean
/** Show the back button on both small and big screens */
back?: boolean
}>() }>()
</script> </script>
@ -16,7 +16,8 @@ defineProps<{
<div flex justify-between px5 py4> <div flex justify-between px5 py4>
<div flex gap-3 items-center overflow-hidden> <div flex gap-3 items-center overflow-hidden>
<NuxtLink <NuxtLink
v-if="backOnSmallScreen" lg:hidden flex="~ gap1" items-center btn-text p-0 v-if="backOnSmallScreen || back" flex="~ gap1" items-center btn-text p-0
:class="{ 'lg:hidden': backOnSmallScreen }"
@click="$router.go(-1)" @click="$router.go(-1)"
> >
<div i-ri:arrow-left-line /> <div i-ri:arrow-left-line />