mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-17 10:15:27 -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
|
// 1) Recipient chips inside the email reader area
|
||||||
const chip = e.target.closest && e.target.closest('.recipient-chip');
|
const chip = e.target.closest && e.target.closest('.recipient-chip');
|
||||||
if (chip && chip.closest('.email-reader-header, .email-card-reader, .email-reader-tab-modal')) {
|
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 email = (chip.dataset && chip.dataset.email) || '';
|
||||||
const name = (chip.dataset && chip.dataset.name) || (chip.textContent || '').trim();
|
const name = (chip.dataset && chip.dataset.name) || (chip.textContent || '').trim();
|
||||||
if (!email) return;
|
if (!email) return;
|
||||||
|
|||||||
@@ -28136,6 +28136,12 @@ button .spinner-whirlpool {
|
|||||||
min-height: 0;
|
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
|
/* Gmail-style chevron — collapsed view shows only From; the chevron
|
||||||
reveals the To/Cc details inline below. */
|
reveals the To/Cc details inline below. */
|
||||||
.email-reader-meta-toggle {
|
.email-reader-meta-toggle {
|
||||||
|
|||||||
Reference in New Issue
Block a user