Use RTE TextView for timeline text messages, add mention pills to messages (#1990)
* Add `formattedBody` to `TimelineItemTextBasedContent`. This is pre-computed when timeline events are being mapped from the Rust SDK. * Update `HtmlConverterProvider` styles. * Improve `MentionSpan` to add missing `@` or `#` if needed * Replace `HtmlDocument` with the `TextView` based component * Improve extra padding calculation for timestamp by rounding the float offset result instead of truncating it. * Remove composer line height workaround * Use `ElementRichTextEditorStyle` instead of `RichTextEditorDefaults` for the theming * Use slightly different styles for composer and messages (top/bottom line height discrepancies, mostly). * Add `formattedBody` to notice and emote events. --------- Co-authored-by: ElementBot <benoitm+elementbot@element.io>
This commit is contained in:
parent
5cf78b696b
commit
ab58cc2ed5
232 changed files with 754 additions and 1124 deletions
3
changelog.d/1433.feature
Normal file
3
changelog.d/1433.feature
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Use the RTE library `TextView` to render text events in the timeline.
|
||||
|
||||
Add support for mention pills - with no interaction yet.
|
||||
Loading…
Add table
Add a link
Reference in a new issue