diff options
author | Vitaly Ovchinnikov <v@postbox.nz> | 2023-09-04 18:39:41 +0300 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-09-05 20:46:57 +0200 |
commit | 389d89a9362e2e782f17074331bf85bb579d7466 (patch) | |
tree | 94713f6ea625f1b02014516ee8216510cf3b0580 /worker | |
parent | 39fee6ca17fa0df8ecc25925659c4f9785c769fc (diff) | |
download | aerc-389d89a9362e2e782f17074331bf85bb579d7466.tar.gz |
msgviewer: show attachment file names first if possible
Change the parts switcher so it displays the file names first (if any)
and then the mime types. The mime types are aligned to the right to help
the file names to be more visible. If there is no file name - the mime
type is displayed on the left, as usual.
The idea is that the file name (if present) is more important than the
mime type. Especially when both file names and mime types are long -
this quickly becomes a mess.
If there is no space for both file name and mime, the mime type is
truncated with ellipsis. If there is no space for mime at all - it is
dropped completely. If then there is no space for the file name, it is
also truncated with ellipsis.
Signed-off-by: Vitaly Ovchinnikov <v@postbox.nz>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Inwit <inwit@sindominio.net>
Diffstat (limited to 'worker')
0 files changed, 0 insertions, 0 deletions