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

@ -129,8 +129,7 @@ export default {
:style="{
'z-index': zIndex,
}"
class="scrollbar-hide"
fixed inset-0 overflow-y-auto overscroll-none
fixed inset-0 of-y-auto scrollbar-hide overscroll-none
>
<!-- The style `scrollbar-hide overscroll-none overflow-y-scroll` and `h="[calc(100%+0.5px)]"` is used to implement scroll locking, -->
<!-- corresponding to issue: #106, so please don't remove it. -->
@ -189,12 +188,4 @@ export default {
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
}
.scrollbar-hide {
scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
</style>