Fixed login positioning glitch on first page visit

This commit is contained in:
Grzegorz Leoniec 2018-12-18 11:51:14 +01:00
parent a9f9cb18f2
commit 1173a28af6
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -1,5 +1,12 @@
<template> <template>
<ds-container width="small"> <transition
name="fade"
appear
>
<ds-container
v-if="ready"
width="small"
>
<ds-space margin="small"> <ds-space margin="small">
<blockquote> <blockquote>
<p>{{ $t('quotes.african.quote') }}</p> <p>{{ $t('quotes.african.quote') }}</p>
@ -61,7 +68,7 @@
full-width full-width
name="submit" name="submit"
type="submit" type="submit"
icon-right="sign-in" icon="sign-in"
> >
{{ $t('login.login') }} {{ $t('login.login') }}
</ds-button> </ds-button>
@ -79,6 +86,7 @@
</ds-flex> </ds-flex>
</ds-card> </ds-card>
</ds-container> </ds-container>
</transition>
</template> </template>
<script> <script>
@ -93,6 +101,7 @@ export default {
layout: 'blank', layout: 'blank',
data() { data() {
return { return {
ready: false,
form: { form: {
email: '', email: '',
password: '' password: ''
@ -109,6 +118,11 @@ export default {
return this.$store.getters['auth/pending'] return this.$store.getters['auth/pending']
} }
}, },
mounted() {
setTimeout(() => {
this.ready = true
}, 500)
},
methods: { methods: {
async onSubmit() { async onSubmit() {
try { try {