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