change styles for the dropdown, make things work nicely on mobile
This commit is contained in:
parent
961099d34a
commit
21d1f557f6
13 changed files with 204 additions and 66 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue