Skip to content

Commit 251c14a

Browse files
committed
center scroll up button
1 parent 092907d commit 251c14a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

frontend/src/components/shared/ScrollUpButton.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<template>
22
<!-- eslint-disable max-len -->
3-
<button v-if="showScroll"
4-
class="z-10 fixed text-2xl text-white-matcha font-bold bottom-0 mx-auto ml-4 sm:ml-8 mb-8 w-12 h-12 rounded-full bg-purple-matcha"
5-
v-on:click="scrollUp()">
6-
↑</button>
3+
<div class="fixed bottom-0 w-full flex justify-center -ml-4 sm:-ml-16 lg:-ml-32">
4+
<button v-if="showScroll"
5+
class="z-10 text-2xl text-white-matcha font-bold mb-10 w-12 h-12 rounded-full bg-purple-matcha"
6+
v-on:click="scrollUp()">
7+
↑</button>
8+
</div>
79
</template>
810

911
<script>

0 commit comments

Comments
 (0)