We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 121c90f commit 6fdcc55Copy full SHA for 6fdcc55
components/main/MainContent.vue
@@ -1,9 +1,9 @@
1
<script setup lang="ts">
2
defineProps<{
3
- /**
4
- * Show the back button on small screens
5
- */
+ /** Show the back button on small screens */
6
backOnSmallScreen?: boolean
+ /** Show the back button on both small and big screens */
+ back?: boolean
7
}>()
8
</script>
9
@@ -16,7 +16,8 @@ defineProps<{
16
<div flex justify-between px5 py4>
17
<div flex gap-3 items-center overflow-hidden>
18
<NuxtLink
19
- 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
20
+ :class="{ 'lg:hidden': backOnSmallScreen }"
21
@click="$router.go(-1)"
22
>
23
<div i-ri:arrow-left-line />
0 commit comments