stream-chat-react icon indicating copy to clipboard operation
stream-chat-react copied to clipboard

bug: messages with markdown content make channel preview grow

Open MartinCupela opened this issue 3 years ago • 0 comments

Describe the bug

Channel preview parses message text as markdown. This leads to rendering multi-line text in some cases and thus increases the height of the preview.

To Reproduce

Steps to reproduce the behavior:

Message in message list Message in channel preview
image image
image image

Expected behavior

  1. Render only the first line of the message
  2. Longer lines are shortened with ellipsis

Package version

  • stream-chat-react: 10.1.1
  • stream-chat-css: 3.1.1

MartinCupela avatar Sep 21 '22 14:09 MartinCupela