diff --git a/dev/Model/Message.js b/dev/Model/Message.js index 2c0e22701..2e21b39b2 100644 --- a/dev/Model/Message.js +++ b/dev/Model/Message.js @@ -156,7 +156,6 @@ export class MessageModel extends AbstractModel { this.addComputables({ attachmentIconClass: () => FileInfo.getAttachmentsIconClass(this.attachments()), threadsLen: () => this.threads().length, - isImportant: () => MessagePriority.High === this.priority(), hasAttachments: () => this.attachments().hasVisible(), isUnseen: () => !this.flags().includes('\\seen'), @@ -370,7 +369,7 @@ export class MessageModel extends AbstractModel { /** * @return string */ - lineAsCss() { + lineAsCss(flags=1) { let classes = []; forEachObjectEntry({ deleted: this.deleted(), @@ -378,13 +377,13 @@ export class MessageModel extends AbstractModel { checked: this.checked(), unseen: this.isUnseen(), focused: this.focused(), - important: this.isImportant(), + priorityHigh: this.priority() === MessagePriority.High, withAttachments: !!this.attachments().length, // hasChildrenMessage: 1 < this.threadsLen(), hasUnseenSubMessage: this.hasUnseenSubMessage(), hasFlaggedSubMessage: this.hasFlaggedSubMessage() }, (key, value) => value && classes.push(key)); - this.flags().forEach(value => classes.push('msgflag-'+value)); + flags && this.flags().forEach(value => classes.push('msgflag-'+value)); return classes.join(' '); } diff --git a/dev/Styles/User/MessageList.less b/dev/Styles/User/MessageList.less index 47af6e44e..42c1b0dda 100644 --- a/dev/Styles/User/MessageList.less +++ b/dev/Styles/User/MessageList.less @@ -211,11 +211,10 @@ html:not(rl-mobile) { border-left-color: #ccc; } - .priorityHigh::before { - content: '!'; /*❗*/ + &.priorityHigh .subjectParent::before { + content: '! '; /*❗*/ color: red; font-weight: bolder; - margin-right: 5px; } &.deleted { diff --git a/dev/Styles/User/MessageView.less b/dev/Styles/User/MessageView.less index 958452b0c..c15b4c03c 100644 --- a/dev/Styles/User/MessageView.less +++ b/dev/Styles/User/MessageView.less @@ -26,6 +26,12 @@ html.rl-no-preview-pane { color: #fff; } + .priorityHigh .subject::before { + content: '! '; /*❗*/ + color: red; + font-weight: bolder; + } + .b-content { height: 100%; } @@ -79,7 +85,6 @@ html.rl-no-preview-pane { .flagParent { cursor: pointer; - margin: 0 0.25em; .flagOn { color: orange; @@ -106,6 +111,10 @@ html.rl-no-preview-pane { padding: 10px; flex-shrink: 0; + .fontastic + span { + margin-left: 0.25em; + } + .subjectParent { display: flex; font-size: 18px; @@ -118,6 +127,7 @@ html.rl-no-preview-pane { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + margin: 0 0.25em; } .subject:empty { font-style: italic; diff --git a/snappymail/v/0.0.0/app/templates/Views/User/MailMessageList.html b/snappymail/v/0.0.0/app/templates/Views/User/MailMessageList.html index 6d870ec09..8fe27ddb3 100644 --- a/snappymail/v/0.0.0/app/templates/Views/User/MailMessageList.html +++ b/snappymail/v/0.0.0/app/templates/Views/User/MailMessageList.html @@ -134,7 +134,7 @@ -
+ diff --git a/snappymail/v/0.0.0/app/templates/Views/User/MailMessageView.html b/snappymail/v/0.0.0/app/templates/Views/User/MailMessageView.html index f1f8c4c7c..6a158d05e 100644 --- a/snappymail/v/0.0.0/app/templates/Views/User/MailMessageView.html +++ b/snappymail/v/0.0.0/app/templates/Views/User/MailMessageView.html @@ -34,7 +34,7 @@ -