diff --git a/static/js/emailLibrary.js b/static/js/emailLibrary.js index c5dc28d2a..7fd7b1b07 100644 --- a/static/js/emailLibrary.js +++ b/static/js/emailLibrary.js @@ -2167,6 +2167,10 @@ window.addEventListener('click', (e) => { // 1) Recipient chips inside the email reader area const chip = e.target.closest && e.target.closest('.recipient-chip'); if (chip && chip.closest('.email-reader-header, .email-card-reader, .email-reader-tab-modal')) { + // Don't pivot to library search for chips in the From / To / Cc + // meta — clicking those should just toggle the expanded address + // view via the per-reader handler. + if (chip.closest('.email-reader-meta')) return; const email = (chip.dataset && chip.dataset.email) || ''; const name = (chip.dataset && chip.dataset.name) || (chip.textContent || '').trim(); if (!email) return; diff --git a/static/style.css b/static/style.css index af33cfd50..ecb38b2a3 100644 --- a/static/style.css +++ b/static/style.css @@ -28136,6 +28136,12 @@ button .spinner-whirlpool { min-height: 0; } } +/* Accent-tint the email-search (from-sender) magnifying glass so + it reads as a deliberate search action against the other icons. */ +.email-reader-actions-inline .reader-icon-btn[data-act="from-sender"] svg { + color: var(--accent-primary, var(--red)); + stroke: var(--accent-primary, var(--red)); +} /* Gmail-style chevron — collapsed view shows only From; the chevron reveals the To/Cc details inline below. */ .email-reader-meta-toggle {