Skip to content

Commit 8b89004

Browse files
authored
Merge pull request #21 from danielyannarek/remove-sign-in-out-white-space
sign in/out white space fix
2 parents c59595a + e0ddc94 commit 8b89004

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/Guard.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,12 @@ export default {
123123
this.initializeGuard()
124124
},
125125
126+
beforeUpdate() {
127+
if (this.top === 0) this.top = this.$vuetify.application.top
128+
},
129+
126130
updated() {
127-
if (this.$vuetify.application.top > this.top) {
128-
this.$vuetify.application.top = this.top
129-
}
131+
if (this.top !== 0) this.$vuetify.application.top = this.top
130132
},
131133
132134
methods: {

0 commit comments

Comments
 (0)