From eb2a9b3947c6298e56eea9c2acec73a612cecc2f Mon Sep 17 00:00:00 2001 From: Pierre Date: Fri, 20 Apr 2018 08:04:42 +0200 Subject: [PATCH] Fix issue on message content in new conversation messages dropdown --- assets/css/components/conversations/unreadDropdown.css | 5 +++++ assets/js/components/conversations/unreadDropdown.js | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/css/components/conversations/unreadDropdown.css b/assets/css/components/conversations/unreadDropdown.css index 1bf1e7f7..68b416aa 100644 --- a/assets/css/components/conversations/unreadDropdown.css +++ b/assets/css/components/conversations/unreadDropdown.css @@ -6,4 +6,9 @@ .no-unread-conversation-msg { padding: 20px; +} + +.new-conversations-dropdown .message-content { + white-space: normal; + font-style: italic; } \ No newline at end of file diff --git a/assets/js/components/conversations/unreadDropdown.js b/assets/js/components/conversations/unreadDropdown.js index 7344143c..e7fa71da 100644 --- a/assets/js/components/conversations/unreadDropdown.js +++ b/assets/js/components/conversations/unreadDropdown.js @@ -18,7 +18,7 @@ ComunicWeb.components.conversations.unreadDropdown = { var dropdown = createElem2({ appendTo: target, type: "li", - class: "dropdown messages-menu" + class: "dropdown messages-menu new-conversations-dropdown" }); //Add dropdown toggle @@ -225,7 +225,8 @@ ComunicWeb.components.conversations.unreadDropdown = { var conversationMessage = createElem2({ appendTo: convLink, type: "p", - innerHTML: ""+conversation.message+"" + class: "message-content", + innerHTML: conversation.message }); //Make the conversation link lives