diff --git a/src/components/Pagination.vue b/src/components/Pagination.vue index 87d2710f6a5071bf6f8c9e09c5e99a415dd48705..28fa48c428beeb7f68549cb6aa5fb603d2d41a08 100644 --- a/src/components/Pagination.vue +++ b/src/components/Pagination.vue @@ -10,7 +10,7 @@ </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> </template> @@ -21,12 +21,6 @@ export default ({ props: { bottom: Boolean }, - computed: { - detect_height: function() { - return document.body.scrollHeight > 1.5 * window.innerHeight - } - }, - methods: { update: function(item) { if (this.bottom) { @@ -47,9 +41,12 @@ export default ({ <style scoped> .centered { - width: 100%; - justify-content: center; text-align: center; padding-bottom: 10px; } + +.centered > span { + justify-content: center; + padding-bottom: 10px +} </style> \ No newline at end of file