mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-16 01:35:36 -04:00
99660e1c6d
Four fixes from the first round of usage: 1. Pill height was larger than the chip-bar's row — shrink to a fixed 18px-tall pill (line-height + height pinned) so it sits inside the input row. 2. List refresh wiped pill state — when _loadEmails replaces state._libEmails (refresh, folder switch, etc.), refresh the snapshot to the new list and re-apply the pill filter so pills persist instead of resetting to 'show all emails'. 3. Click-to-add only worked inside the open email reader. Extend the capture-phase handler to ALSO catch clicks on .email-meta-sender inside the library grid — the list card's sender name is the most natural place to want to pivot from. 4. Esc inside the chip-input didn't close the modal. New behaviour: if the autocomplete dropdown is open, Esc closes only the dropdown (and swallows the event); otherwise Esc blurs the input and bubbles so the existing modal Esc handler can close the library. Also wires data-email + data-name on .email-meta-sender so the click handler has reliable targeting.