Commit 19fdb4f
authored
fix: white space inconsistency in quoted messages, clamp quoted messages (#322)
### 🎯 Goal
- White spaces were treated differently in quoted messages
- Adds clamping to quoted message
See screenshot for details
Merge this if you want the fix for React as well:
GetStream/stream-chat-react#2601
### 🛠 Implementation details
_Provide a description of the implementation_
### 🎨 UI Changes
**White space incosistencies**
If we quoted a message with line-breaks before...

...the line breaks were not properly preserved in the quote preview:

**Clamping**
Without message clamping quoted messages can take up a lot of space:

With message clamping:
1 parent 749af40 commit 19fdb4f
1 file changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
62 | 73 | | |
63 | 74 | | |
64 | 75 | | |
65 | 76 | | |
66 | 77 | | |
67 | 78 | | |
| 79 | + | |
68 | 80 | | |
69 | 81 | | |
70 | 82 | | |
| |||
165 | 177 | | |
166 | 178 | | |
167 | 179 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | 180 | | |
173 | 181 | | |
174 | 182 | | |
| |||
357 | 365 | | |
358 | 366 | | |
359 | 367 | | |
360 | | - | |
361 | 368 | | |
362 | 369 | | |
363 | 370 | | |
| |||
0 commit comments