diff --git a/packages/rocketchat-theme/client/imports/components/sidebar/sidebar-item.css b/packages/rocketchat-theme/client/imports/components/sidebar/sidebar-item.css index 451d47788dfd..f0b0914bbff1 100644 --- a/packages/rocketchat-theme/client/imports/components/sidebar/sidebar-item.css +++ b/packages/rocketchat-theme/client/imports/components/sidebar/sidebar-item.css @@ -241,16 +241,14 @@ min-height: 13px; } - & > p, - & code, - & pre { - display: inline; - - white-space: unset; - } - - & br { - display: none; + & * { + display: inline !important; + white-space: unset !important; + background-color: unset !important; + color: inherit !important; + font-weight: unset !important; + font-family: inherit !important; + padding: unset !important; } & a { diff --git a/packages/rocketchat-ui-sidenav/client/sidebarItem.js b/packages/rocketchat-ui-sidenav/client/sidebarItem.js index 2597a76b9ce8..8eb3b831cce8 100644 --- a/packages/rocketchat-ui-sidenav/client/sidebarItem.js +++ b/packages/rocketchat-ui-sidenav/client/sidebarItem.js @@ -55,7 +55,7 @@ Template.sidebarItem.onCreated(function() { if (currentData.lastMessage) { if (currentData.lastMessage._id) { const otherUser = RocketChat.settings.get('UI_Use_Real_Name') ? currentData.lastMessage.u.name || currentData.lastMessage.u.username : currentData.lastMessage.u.username; - const renderedMessage = renderMessageBody(currentData.lastMessage); + const renderedMessage = renderMessageBody(currentData.lastMessage).replace(//g, ' '); const sender = Meteor.userId() === currentData.lastMessage.u._id ? t('You') : otherUser; if (currentData.t === 'd' && Meteor.userId() !== currentData.lastMessage.u._id) {