This commit is contained in:
2026-08-11 15:03:02 +08:00
parent c97304b786
commit fb8f52fe76
40 changed files with 376 additions and 787 deletions
@@ -105,8 +105,8 @@ export function useRichTextLinkOverlay(options = {}) {
const maxTop = container.scrollTop + container.clientHeight - cardHeight - 8;
linkHoverStyle.value = {
left: `${Math.max(minLeft, Math.min(rawLeft, Math.max(minLeft, maxLeft)))}px`,
top: `${Math.max(minTop, Math.min(rawTop, Math.max(minTop, maxTop)))}px`
left: `${Math.max(minLeft, Math.min(rawLeft, maxLeft))}px`,
top: `${Math.max(minTop, Math.min(rawTop, maxTop))}px`
};
linkHoverHref.value = href;
hoverAnchorPos.value = resolveAnchorPos(anchorEl);