mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Threaded view changes for https://github.com/the-djmaze/snappymail/issues/445#issuecomment-1364575843
This commit is contained in:
parent
871664cd39
commit
5c9fdb6b55
7 changed files with 35 additions and 7 deletions
|
|
@ -220,6 +220,10 @@ export class MessageModel extends AbstractModel {
|
|||
return classes.join(' ');
|
||||
}
|
||||
|
||||
indent() {
|
||||
return this.level ? 'margin-left:'+this.level+'em' : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -264,6 +264,17 @@ MessagelistUserStore.reload = (bDropPagePosition = false, bDropCurrentFolderCach
|
|||
|
||||
disableAutoSelect(true);
|
||||
|
||||
if (collection.ThreadUid) {
|
||||
let refs = {};
|
||||
collection.forEach(msg => {
|
||||
msg.level = 0;
|
||||
if (msg.inReplyTo && refs[msg.inReplyTo]) {
|
||||
msg.level = 1 + refs[msg.inReplyTo].level;
|
||||
}
|
||||
refs[msg.messageId] = msg;
|
||||
});
|
||||
}
|
||||
|
||||
MessagelistUserStore(collection);
|
||||
MessagelistUserStore.isIncomplete(false);
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,13 @@ html.rl-no-preview-pane {
|
|||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.reply::before {
|
||||
content: '↳';
|
||||
line-height: 3;
|
||||
position: absolute;
|
||||
margin-left: -1em;
|
||||
}
|
||||
|
||||
.b-footer {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue