From f6c4c9a67c1a35b26c58808c96ad8d3c18613d78 Mon Sep 17 00:00:00 2001 From: pewdiepie-archdaemon Date: Sat, 13 Jun 2026 07:59:41 +0900 Subject: [PATCH] AI reply always reopens menu + Cc toggle 2px down in doc compose - AI reply: removed the cached_ai_reply shortcut so clicking the button always reopens the Fast/Full + context menu. Lets the user ask for a fresh draft (with new steering) instead of being locked into the cached one. - .email-cc-toggle gets position:relative + top:2px so it baseline-aligns with the To: field chips next to it in the document email compose. --- static/js/emailLibrary.js | 7 +++---- static/style.css | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/static/js/emailLibrary.js b/static/js/emailLibrary.js index 4077fddfb..ad91e1fee 100644 --- a/static/js/emailLibrary.js +++ b/static/js/emailLibrary.js @@ -5992,10 +5992,9 @@ function _showAiReplyChoice(btn, em, data) { function _handleAiReplyButton(ev, em, data) { ev.stopPropagation(); const btn = ev.currentTarget; - if (data?.cached_ai_reply) { - _runAiReplyFromButton(btn, em, data, 'ai-reply'); - return; - } + // Always open the Fast/Full + context menu — even when a cached + // reply exists — so the user can ask for a fresh draft with new + // steering instead of being locked into the cached one. _showAiReplyChoice(btn, em, data); } diff --git a/static/style.css b/static/style.css index a91931058..ae65a36d5 100644 --- a/static/style.css +++ b/static/style.css @@ -30345,6 +30345,10 @@ body.doc-find-active mark.doc-find-mark.current { background: none; border: none; color: var(--fg); opacity: 0.4; font-size: 11px; cursor: pointer; padding: 4px 8px; font-family: inherit; + /* Nudge 2px down so the label baseline-aligns with the To: field + chips beside it. */ + position: relative; + top: 2px; } .email-cc-toggle:hover { opacity: 1;