Remove direct style manipulations in favor of classes

This commit is contained in:
eugenijm 2020-07-07 21:43:46 +03:00
parent ed7310c04b
commit fc865d3a12
5 changed files with 16 additions and 17 deletions

View file

@ -60,19 +60,6 @@ const ChatMessage = {
currentUser: state => state.users.currentUser,
restrictedNicknames: state => state.instance.restrictedNicknames
}),
ellipsisButtonWrapperStyle () {
let res = {
'opacity': this.hovered || this.menuOpened ? '1' : '0'
}
if (this.isCurrentUser) {
res.right = '0.4rem'
} else {
res.left = '0.4rem'
}
return res
},
popoverMarginStyle () {
if (this.isCurrentUser) {
return {}