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>
|
<script lang="ts" setup>
|
||||||
//const props = defineProps(['show']);
|
|
||||||
const showScroll = ref(false);
|
const showScroll = ref(false);
|
||||||
const updateScrollPosition = () => {
|
const updateScrollPosition = () => {
|
||||||
showScroll.value = document.documentElement.scrollTop > 1500;
|
showScroll.value = document.documentElement.scrollTop > 1500;
|
||||||
|
@ -35,7 +34,7 @@ onUnmounted(() => {
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: rgba(112, 128, 144, 0.8);
|
background-color: rgba(112, 128, 144, 0.8);
|
||||||
padding: 1rem;
|
padding: 0.5rem;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue