mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
editor: always show link hover popup at mouse position
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -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 }
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user