mail icon indicating copy to clipboard operation
mail copied to clipboard

MessageList: Rewrite headers

Open danirabbit opened this issue 2 years ago • 6 comments

Makes expanded headers much more compact and makes it much easier to navigate conversations with changing subjects

  • Use CSS to set padding and margins
  • Show a subject header in the message list only when it changes instead in every message
  • Slightly reduce the size of Avatars
  • Don't show the "From:" label. Other fields like to, cc, bcc etc need disambiguation, but I think this is fairly clear that this first line is the sender
  • Put all the actions in a row. This prevents things from moving around when messages have attachments etc

danirabbit avatar May 17 '23 21:05 danirabbit

@lenemter okay, I'll split that out! I would like to find a way to not repeat the subject line in every header and handle changing subjects more obviously but we can do things in stages and try to preserve the more compact design as well :)

danirabbit avatar May 18 '23 16:05 danirabbit

Hey @lenemter, I was able to get the overlapping back in there with some funky selectors, we still get separate headers for conversations where the subject changes (See the screenshot at the top I updated), and for single-subject conversations you can see the message headers are much more compact with no repeating subject line, and the datetime is centered vertically for the overlapped messages.

Screenshot from 2023-05-18 14 39 31 Screenshot from 2023-05-18 14 38 51

However, by overlapping again, we do lose the ability to see if a collapsed message was starred or has an attachment, so that seems problematic to me. I think from a perspective of doing the least hacky stuff, changing the header the least when collapsed, having the conversation list be usable at small window widths for tiling and mobile, and making sure all the information is visible for collapsed messages that overlapping is kind of a huge problem. Since it's in a scrolling list, I'm not sure using up vertical space is a huge issue.

danirabbit avatar May 18 '23 21:05 danirabbit

However, by overlapping again, we do lose the ability to see if a collapsed message was starred or has an attachment, so that seems problematic to me.

I didn't think about it, but it's a big issue now. I can't come up with an easy solution other than reverting this change :(

I really like the subject header but I noticed that this branch causes massive slowdowns when opening a thread on my end. Maybe because it needs to load a subject of every message?

lenemter avatar May 19 '23 10:05 lenemter

I should have mentioned that I noticed slowdowns when deleting threads. When opening them performance matches one in master.

lenemter avatar May 20 '23 11:05 lenemter

Sorry, just updated my Mail. Seems like the issue is present in master as well. Probably introduced by recent PRs.

lenemter avatar May 20 '23 14:05 lenemter

Probably with #888 then. Can you maybe open an issue with a clip or go into more detail what is slow? Like does it freeze or does it just not get trashed or similar stuff?

leolost2605 avatar May 20 '23 14:05 leolost2605