chore: improve reaction picker behaviour

This commit is contained in:
syuilo 2021-02-28 09:53:21 +09:00
parent 7674a62d40
commit af280f52ab

View File

@ -135,6 +135,8 @@ export default defineComponent({
if (top > rect.top + (this.fixed ? 0 : window.pageYOffset)) { if (top > rect.top + (this.fixed ? 0 : window.pageYOffset)) {
this.transformOrigin = 'center top'; this.transformOrigin = 'center top';
} else {
this.transformOrigin = 'center';
} }
popover.style.left = left + 'px'; popover.style.left = left + 'px';