From 7e029db44aeb1880855c7417ddf07c1fa953009e Mon Sep 17 00:00:00 2001 From: pewdiepie-archdaemon Date: Thu, 11 Jun 2026 22:05:40 +0900 Subject: [PATCH] Email reader: don't search-pivot from From/To/Cc chips + accent search icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Window-level recipient-chip click handler now bails if the chip is inside .email-reader-meta — the per-reader handler still toggles the expanded-address view on click. - The from-sender (magnifying glass) search button SVG is now tinted with var(--accent-primary) so it stands out as a deliberate search action against the neutral Reply / Forward / etc icons. --- static/js/emailLibrary.js | 4 ++++ static/style.css | 6 ++++++ 2 files changed, 10 insertions(+) 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 {