webmail: for long to/cc/bcc address list (>5) show the first 4 and a button to show the rest

for issue #98 by mattfbacon, thanks
This commit is contained in:
Mechiel Lukkien
2023-11-20 21:36:40 +01:00
parent 73a2a09711
commit 3d80c05423
6 changed files with 80 additions and 16 deletions

View File

@ -2436,7 +2436,7 @@ const newMsgView = (miv: MsgitemView, msglistView: MsglistView, listMailboxes: l
}
loadButtons(parsedMessageOpt || null)
loadMsgheaderView(msgheaderElem, miv.messageitem, settings.showHeaders, refineKeyword)
loadMsgheaderView(msgheaderElem, miv.messageitem, settings.showHeaders, refineKeyword, false)
const loadHeaderDetails = (pm: api.ParsedMessage) => {
if (msgheaderdetailsElem) {
@ -2705,7 +2705,7 @@ const newMsgView = (miv: MsgitemView, msglistView: MsglistView, listMailboxes: l
updateKeywords: async (modseq: number, keywords: string[]) => {
mi.Message.ModSeq = modseq
mi.Message.Keywords = keywords
loadMsgheaderView(msgheaderElem, miv.messageitem, settings.showHeaders, refineKeyword)
loadMsgheaderView(msgheaderElem, miv.messageitem, settings.showHeaders, refineKeyword, false)
loadMoreHeaders(await parsedMessagePromise)
},
}