Skip to content

Commit 6fdcc55

Browse files
authored
fix: re-add back button (#618)
1 parent 121c90f commit 6fdcc55

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/main/MainContent.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script setup lang="ts">
22
defineProps<{
3-
/**
4-
* Show the back button on small screens
5-
*/
3+
/** Show the back button on small screens */
64
backOnSmallScreen?: boolean
5+
/** Show the back button on both small and big screens */
6+
back?: boolean
77
}>()
88
</script>
99

@@ -16,7 +16,8 @@ defineProps<{
1616
<div flex justify-between px5 py4>
1717
<div flex gap-3 items-center overflow-hidden>
1818
<NuxtLink
19-
v-if="backOnSmallScreen" lg:hidden flex="~ gap1" items-center btn-text p-0
19+
v-if="backOnSmallScreen || back" flex="~ gap1" items-center btn-text p-0
20+
:class="{ 'lg:hidden': backOnSmallScreen }"
2021
@click="$router.go(-1)"
2122
>
2223
<div i-ri:arrow-left-line />

0 commit comments

Comments
 (0)