From 50487af6a7f9cdc8c7cc3e98a3586513a7ac1208 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 21 Mar 2023 10:05:29 +0100 Subject: [PATCH] Improved attachment glyph handling --- dev/Model/Attachment.js | 2 +- dev/Styles/User/Attachments.less | 16 ++++++++-------- .../templates/Views/User/MailMessageView.html | 7 +------ vendors/fontastic/fonts/snappymail.woff | Bin 9936 -> 9964 bytes vendors/fontastic/fonts/snappymail.woff2 | Bin 7908 -> 7908 bytes vendors/fontastic/styles.css | 16 ++++++++-------- 6 files changed, 18 insertions(+), 23 deletions(-) diff --git a/dev/Model/Attachment.js b/dev/Model/Attachment.js index a69e4ba23..834f2264b 100644 --- a/dev/Model/Attachment.js +++ b/dev/Model/Attachment.js @@ -163,7 +163,7 @@ export class AttachmentModel extends AbstractModel { thumbnailStyle() { return this.hasThumbnail() ? 'background:url(' + serverRequestRaw('ViewThumbnail', this.download) + ')' - : ''; + : null; } /** diff --git a/dev/Styles/User/Attachments.less b/dev/Styles/User/Attachments.less index 025b453d1..23ac69f99 100644 --- a/dev/Styles/User/Attachments.less +++ b/dev/Styles/User/Attachments.less @@ -100,21 +100,21 @@ } */ - .showPreview, .showPreplay, + .showPreview, .hasPreview:hover .iconMain, - .hasPreplay:hover .iconMain, - .hasPreview .hidePreview, - .hasPreplay .hidePreview { + .hasPreview .hidePreview { display: none; } - .hasPreview:hover .iconPreview, - .hasPreplay:hover .iconPreview { + .hasPreview:hover .iconPreview { display: inline-block; } - .hasPreview .showPreview, - .hasPreplay .showPreplay { + .hasPreplay:hover .iconMain::before { + content: "▶"; + } + + .hasPreview .showPreview { display: inline; cursor: pointer; } 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 bd45573ac..97e081b82 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 @@ -231,19 +231,14 @@