refactor: improve code structure (#343)

This commit is contained in:
Ayaka Rizumu 2022-12-05 21:20:23 +08:00 committed by GitHub
parent f2d6159aa1
commit 70db3ea759
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 59 deletions

View file

@ -6,8 +6,8 @@ const moreMenuVisible = ref(false)
<template>
<nav
h-14 border="t base" flex flex-row text-xl
of-y-scroll overscroll-none
class="scrollbar-hide after-content-empty after:(h-[calc(100%+0.5px)] w-0.1px pointer-events-none)"
of-y-scroll scrollbar-hide overscroll-none
class="after-content-empty after:(h-[calc(100%+0.5px)] w-0.1px pointer-events-none)"
>
<!-- These weird styles above are used for scroll locking, don't change it unless you know exactly what you're doing. -->
<template v-if="currentUser">
@ -46,13 +46,3 @@ const moreMenuVisible = ref(false)
</NavBottomMoreMenu>
</nav>
</template>
<style scoped>
.scrollbar-hide {
scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
</style>