change styles for the dropdown, make things work nicely on mobile

This commit is contained in:
Shpuld Shpuldson 2020-07-03 12:56:31 +03:00
parent 961099d34a
commit 21d1f557f6
13 changed files with 204 additions and 66 deletions

View file

@ -5,11 +5,25 @@ const TimelineMenu = {
components: {
Popover
},
data () {
return {
isOpen: false
}
},
created () {
if (this.currentUser && this.currentUser.locked) {
this.$store.dispatch('startFetchingFollowRequests')
}
},
methods: {
openMenu () {
// Tried using $nextTick, but the animation wouldn't
// play, I assume it played too quickly
setTimeout(() => {
this.isOpen = true
}, 1)
}
},
computed: {
...mapState({
currentUser: state => state.users.currentUser,