From f5f9defa751839e513fd4a2882200627b1dc351b Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 5 Jul 2018 13:24:24 +0000 Subject: [PATCH] Elastic: Support messages of type chat notice (or any subtype notices) --- skins/elastic/styles/widgets/messages.less | 4 ++++ skins/elastic/ui.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/skins/elastic/styles/widgets/messages.less b/skins/elastic/styles/widgets/messages.less index 3e0b12618..97452a557 100644 --- a/skins/elastic/styles/widgets/messages.less +++ b/skins/elastic/styles/widgets/messages.less @@ -210,6 +210,10 @@ & > i.icon:before { color: #fff; } + + &.chat > i.icon:before { + content: @fa-var-comment; + } } .alert-success { diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index b87a3dbb2..639886033 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -1678,6 +1678,9 @@ function rcube_elastic_ui() vcardattachment: 'alert-info' /* vcard_attachments plugin */ }; + // Type can be e.g. 'notice chat' + type = type.split(' ')[0]; + if (wrap && addicon && !$(object).is('.aligned-buttons')) { // we need the content to be non-text node for best alignment tmp = $(object).html();