mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-16 17:55:26 -04:00
Email reader: don't search-pivot from From/To/Cc chips + accent search icon
- 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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user