fix: make buttontotop visible

it's on the left because teleport only supports left
This commit is contained in:
2022-08-10 11:10:49 -04:00
parent ef78861e16
commit 3697690c31
2 changed files with 4 additions and 4 deletions

View File

@@ -1,11 +1,11 @@
<template>
<Teleport to="body"> <a href="#" class="go-top"></a></Teleport>
<Teleport to="body"> <a href="#" class="go-top" /></Teleport>
</template>
<style>
body {
display: grid;
grid-template-columns: auto 0;
grid-template-columns: 0 auto;
}
</style>
@@ -14,7 +14,7 @@ body {
--offset: 20rem;
position: sticky;
bottom: 1rem;
margin-right: 1rem;
left: 1rem;
place-self: end;
margin-top: calc(100vh + var(--offset));