Skip to content
Snippets Groups Projects
Commit a9cdc08a authored by Henrik Askjer's avatar Henrik Askjer
Browse files

fix scroll button

parent 05d50e6e
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</span> </span>
<v-btn v-if="bottom && $vuetify.breakpoint.mobile && detect_height" text @click.native="to_top"><v-icon left>expand_less</v-icon>Til toppen</v-btn> <v-btn v-if="bottom" text @click.native="to_top"><v-icon left>expand_less</v-icon>Til toppen</v-btn>
</div> </div>
</template> </template>
...@@ -21,12 +21,6 @@ export default ({ ...@@ -21,12 +21,6 @@ export default ({
props: { props: {
bottom: Boolean bottom: Boolean
}, },
computed: {
detect_height: function() {
return document.body.scrollHeight > 1.5 * window.innerHeight
}
},
methods: { methods: {
update: function(item) { update: function(item) {
if (this.bottom) { if (this.bottom) {
...@@ -47,9 +41,12 @@ export default ({ ...@@ -47,9 +41,12 @@ export default ({
<style scoped> <style scoped>
.centered { .centered {
width: 100%;
justify-content: center;
text-align: center; text-align: center;
padding-bottom: 10px; padding-bottom: 10px;
} }
.centered > span {
justify-content: center;
padding-bottom: 10px
}
</style> </style>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment