From 3b036e84b8cc368e5371b21892d4b5bdea98938d Mon Sep 17 00:00:00 2001 From: Antigravity Date: Thu, 7 May 2026 23:29:18 +0000 Subject: [PATCH] fix: auto-title button always visible on hover + wired to AI panel Wand button, title text-4xl/5xl no overflow, content max-w-3xl --- .../components/contextual-ai-chat.tsx | 26 +++++++------- memento-note/components/note-editor.tsx | 34 ++++++++++++++----- 2 files changed, 40 insertions(+), 20 deletions(-) diff --git a/memento-note/components/contextual-ai-chat.tsx b/memento-note/components/contextual-ai-chat.tsx index 1d5578c..ac3d1e1 100644 --- a/memento-note/components/contextual-ai-chat.tsx +++ b/memento-note/components/contextual-ai-chat.tsx @@ -97,6 +97,8 @@ interface ContextualAIChatProps { className?: string /** How to embed generated diagram images (markdown vs rich text HTML) */ diagramInsertFormat?: 'markdown' | 'html' + /** Called to trigger AI title generation for the note */ + onGenerateTitle?: () => void } // ── Component ───────────────────────────────────────────────────────────────── @@ -113,6 +115,7 @@ export function ContextualAIChat({ notebooks = [], className, diagramInsertFormat = 'markdown', + onGenerateTitle, }: ContextualAIChatProps) { const { t, language } = useLanguage() const webSearchAvailable = useWebSearchAvailable() @@ -513,8 +516,7 @@ export function ContextualAIChat({ return (