Remove direct style manipulations in favor of classes
This commit is contained in:
parent
ed7310c04b
commit
fc865d3a12
5 changed files with 16 additions and 17 deletions
|
@ -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 {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue