From 99019c42d11e8ce0d0cbda03e25009d2c42d1bc2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 28 Feb 2021 09:53:21 +0900 Subject: [PATCH] chore: improve reaction picker behaviour --- src/client/components/ui/modal.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/components/ui/modal.vue b/src/client/components/ui/modal.vue index 03be43707..e9f5645a7 100644 --- a/src/client/components/ui/modal.vue +++ b/src/client/components/ui/modal.vue @@ -135,6 +135,8 @@ export default defineComponent({ if (top > rect.top + (this.fixed ? 0 : window.pageYOffset)) { this.transformOrigin = 'center top'; + } else { + this.transformOrigin = 'center'; } popover.style.left = left + 'px';