1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-23 08:44:05 +02:00

[Client] 良い感じに

This commit is contained in:
syuilo
2017-03-20 05:13:13 +09:00
parent 9b8208f937
commit 0390820f07
6 changed files with 24 additions and 15 deletions

View File

@@ -329,10 +329,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
});
};

View File

@@ -377,10 +377,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
});
};