editor: always show link hover popup at mouse position

This commit is contained in:
Abdullah Atta
2023-06-19 13:34:59 +05:00
parent f88c610495
commit 7ae82ccedb
2 changed files with 5 additions and 2 deletions

View File

@@ -90,10 +90,12 @@ export function HoverPopupHandler(props: FloatingMenuProps) {
blocking: false,
focusOnRender: false,
position: {
target: element,
target: "mouse",
align: "center",
location: "top",
isTargetAbsolute: true
isTargetAbsolute: true,
yOffset: 10,
xOffset: -10
}
});
activePopup.current = { element, hide: hidePopup };

View File

@@ -230,6 +230,7 @@ export function OpenLink(props: ToolProps) {
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
color: "primary",
":visited": { color: "primary" },
":hover": { color: "primary", opacity: 0.8 }
}}