chore(client): tweak ui

This commit is contained in:
syuilo
2022-07-14 17:52:59 +09:00
parent 242538ddce
commit f3b0c6f1e7
2 changed files with 21 additions and 11 deletions

View File

@ -116,7 +116,7 @@ const setPosition = () => {
let top: number;
if (props.targetElement) {
left = (rect.left + window.pageXOffset) + props.innerMargin;
left = (rect.left + props.targetElement.offsetWidth + window.pageXOffset) + props.innerMargin;
top = rect.top + window.pageYOffset + (props.targetElement.offsetHeight / 2);
} else {
left = props.x + props.innerMargin;