This commit is contained in:
the-djmaze 2022-12-27 12:19:29 +01:00
parent 871664cd39
commit 5c9fdb6b55
7 changed files with 35 additions and 7 deletions

View file

@ -220,6 +220,10 @@ export class MessageModel extends AbstractModel {
return classes.join(' ');
}
indent() {
return this.level ? 'margin-left:'+this.level+'em' : null;
}
/**
* @returns {string}
*/

View file

@ -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);

View file

@ -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;