fix: re-add back button (#618)
parent
121c90fc3a
commit
6fdcc558fc
|
@ -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 />
|
||||||
|
|
Loading…
Reference in New Issue