mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-25 12:05:06 +02:00
BubbleMenu: - Replace custom useFloating + createPortal with Tiptap's native <BubbleMenu> component (battle-tested focus management) - Add scrollTarget (auto-detect nearest scroll container) so the plugin repositions on scroll - Add scroll-aware display:none for nested container clipping (plugin's hide middleware can't detect it — virtual element has no contextElement) - Add .trim() to textBetween check to filter whitespace-only selections - Enable hide middleware for viewport-level hiding Link click: - Both editable and readonly modes now open links directly - Remove EditorLinkPreview component and link-preview.tsx entirely - ReadonlyContent links use same direct-open pattern Cleanup: - Delete link-preview.tsx (not needed) - Remove @floating-ui/react-dom dependency - Remove .link-preview-card CSS - Add @tiptap/extension-bubble-menu dependency Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3.2 KiB
3.2 KiB