[Client] 良い感じに
This commit is contained in:
parent
9b8208f937
commit
0390820f07
6 changed files with 24 additions and 15 deletions
|
|
@ -335,10 +335,8 @@
|
|||
};
|
||||
|
||||
this.react = () => {
|
||||
const rect = this.refs.reactButton.getBoundingClientRect();
|
||||
riot.mount(document.body.appendChild(document.createElement('mk-reaction-picker')), {
|
||||
top: rect.top + window.pageYOffset,
|
||||
left: rect.left + window.pageXOffset,
|
||||
source: this.refs.reactButton,
|
||||
post: this.p
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -356,10 +356,8 @@
|
|||
};
|
||||
|
||||
this.react = () => {
|
||||
const rect = this.refs.reactButton.getBoundingClientRect();
|
||||
riot.mount(document.body.appendChild(document.createElement('mk-reaction-picker')), {
|
||||
top: rect.top + window.pageYOffset,
|
||||
left: rect.left + window.pageXOffset,
|
||||
source: this.refs.reactButton,
|
||||
post: this.p
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue