mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
29 lines
449 B
Vue
29 lines
449 B
Vue
<script lang="ts" setup>
|
|
const { showBar } = storeToRefs(useNavigaiton())
|
|
const swipeEl = ref()
|
|
const { y } = useWindowScroll()
|
|
|
|
watch(y, (newY, oldY) => {
|
|
if (newY > oldY && newY > 32)
|
|
showBar.value = false
|
|
else
|
|
showBar.value = true
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
ref="swipeEl"
|
|
h-full
|
|
w-full
|
|
>
|
|
<Navigation />
|
|
<div
|
|
max-w-1160px
|
|
w-full
|
|
mx-auto
|
|
>
|
|
<slot />
|
|
</div>
|
|
</div>
|
|
</template>
|