More excessive DOM reductions

This commit is contained in:
djmaze 2021-08-12 14:44:38 +02:00
parent 74f74163c6
commit 5895804e9a
7 changed files with 17 additions and 59 deletions

View file

@ -54,8 +54,6 @@ export class MessageModel extends AbstractModel {
senderEmailsString: '',
senderClearEmailsString: '',
newForAnimation: false,
deleted: false,
isDeleted: false,
isUnseen: false,
@ -128,8 +126,6 @@ export class MessageModel extends AbstractModel {
this.senderEmailsString('');
this.senderClearEmailsString('');
this.newForAnimation(false);
this.deleted(false);
this.isDeleted(false);
this.isUnseen(false);
@ -289,7 +285,6 @@ export class MessageModel extends AbstractModel {
focused: this.focused(),
important: this.isImportant(),
withAttachments: this.hasAttachments(),
new: this.newForAnimation(),
emptySubject: !this.subject(),
// hasChildrenMessage: 1 < this.threadsLen(),
hasUnseenSubMessage: this.hasUnseenSubMessage(),

View file

@ -39,7 +39,6 @@ export class MessageCollectionModel extends AbstractCollectionModel
if (message) {
if (hasNewMessageAndRemoveFromCache(message.folder, message.uid) && 5 >= newCount) {
++newCount;
message.newForAnimation(true);
}
message.deleted(false);

View file

@ -196,13 +196,6 @@ export const MessageUserStore = new class {
listIsNotCompleted: value =>
this.listCompleteLoading(value || this.listLoading()),
list:
(list => {
list.forEach(item =>
item && item.newForAnimation() && item.newForAnimation(false)
)
}).debounce(500),
message: message => {
clearTimeout(MessageSeenTimer);
if (message) {

View file

@ -239,8 +239,6 @@ html.rl-no-preview-pane {
}
.importantMark {
display: none;
color:red;
margin-right:5px
}
@ -252,17 +250,8 @@ html.rl-no-preview-pane {
}
}
&.important .importantMark {
display: inline;
}
&.new {
max-height: 0;
}
&.deleted {
max-height: 0;
border-color: transparent !important;
opacity: .3;
}
.checkboxMessage {
@ -310,22 +299,12 @@ html.rl-no-preview-pane {
border-color: #666;
}
.subjectParent .emptySubjectText {
display: none;
&.emptySubject .subjectParent {
font-style: italic;
opacity: 0.5;
}
&.emptySubject .subjectParent {
.subject {
display: none;
}
.emptySubjectText {
display: inline;
}
}
.sender, .subject {
.senderParent, .subjectParent {
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
@ -342,18 +321,9 @@ html.rl-no-preview-pane {
}
.replyFlag, .forwardFlag {
display: none;
margin-right: 0.25em;
}
&.answered .replyFlag {
display: inline-block;
}
&.forwarded .forwardFlag {
display: inline-block;
}
&:not(.withAttachments) .attachmentParent {
display: none;
}
@ -369,7 +339,7 @@ html.rl-no-preview-pane {
&.unseen {
background-color: rgba(255, 255, 64, 0.15);
border-left-color: orange;
.sender, .subjectParent {
.senderParent, .subjectParent {
font-weight: bold;
}