From 7dff439f2a3a6b0a3c3e9ce1efa3c3de3ba36ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BBywiec?= Date: Mon, 11 Sep 2023 17:55:37 +0200 Subject: [PATCH] feat(package): support mailspring avatars plugin --- styles/components/_messages.less | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/styles/components/_messages.less b/styles/components/_messages.less index 940834c..30ebd3c 100644 --- a/styles/components/_messages.less +++ b/styles/components/_messages.less @@ -44,3 +44,24 @@ .draft-list .thread-icon.thread-icon-attachment { opacity: 0.3; } + +// Support for Mailspring Avatars plugin (https://github.com/Striffly/mailspring-avatars) +.thread-avatar { + & > * { + outline: solid 1px @entry_border; + background-color: @entry_bg; + transform-origin: center center !important; + } +} + +.thread-list .thread-avatar { + & > * { + transform: scale(0.75) !important; + } +} + +.thread-list-narrow .thread-avatar { + & > * { + transform: scale(1) !important; + } +}