Add contacts by right-clicking anyone named in a message
Right-clicking a sender, or any address in the message details, opens a menu offering to add that person to the address book - plus edit them when they are already known, write to them, or copy the address. "Add to contacts" opens the contact editor prefilled rather than saving silently, so the address book gets a real card that the user can complete, not a bare email address. contactFromAddress splits the display name into JSContact name components: "Ada Lovelace" into given and surname, "Lovelace, Ada" unpicked, a single word as the given name, and a name that is really just an address left off entirely. Addresses in the details block were joined into one string, so they are now rendered per address to be individually targetable. ContactEditor previously ignored a prefilled name on an unsaved card - it read name components only when the card had an id - so it now reads them either way.
This commit is contained in:
@@ -851,6 +851,10 @@ img { max-width: 100%; }
|
||||
*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
|
||||
}
|
||||
|
||||
/* Addresses in a message carry a right-click menu (see mail/AddressMenu.tsx). */
|
||||
.addr { cursor: context-menu; }
|
||||
.message-details .addr:hover, .message-head .from .addr:hover { text-decoration: underline dotted; text-underline-offset: 2px; }
|
||||
|
||||
/* ---- Date & time fields (custom pickers; see ui/datefield.tsx) ---- */
|
||||
.dp-field { position: relative; display: inline-flex; align-items: center; width: 100%; }
|
||||
.dp-field .input { width: 100%; padding-right: 30px; }
|
||||
|
||||
Reference in New Issue
Block a user