cleaned up scroll to top button
This commit is contained in:
parent
e80b210c22
commit
8dd7adc600
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
|||
<script lang="ts" setup>
|
||||
//const props = defineProps(['show']);
|
||||
const showScroll = ref(false);
|
||||
const updateScrollPosition = () => {
|
||||
showScroll.value = document.documentElement.scrollTop > 1500;
|
||||
|
@ -35,7 +34,7 @@ onUnmounted(() => {
|
|||
z-index: 1000;
|
||||
cursor: pointer;
|
||||
background-color: rgba(112, 128, 144, 0.8);
|
||||
padding: 1rem;
|
||||
padding: 0.5rem;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue