Fixed report issues.

This commit is contained in:
Mike Cao 2023-06-23 01:19:08 -07:00
parent 414854b064
commit 79856867fb
8 changed files with 1199 additions and 2112 deletions

View file

@ -96,8 +96,10 @@ function AddUrlButton({ onAdd }) {
</Icon>
</TooltipPopup>
<Popup position="bottom" alignment="start">
{close => {
return <UrlAddForm onSave={onAdd} onClose={close} />;
{(close, element) => {
const { right, bottom } = element.getBoundingClientRect();
return <UrlAddForm onSave={onAdd} onClose={close} style={{ left: right, top: bottom }} />;
}}
</Popup>
</PopupTrigger>