Commit a6ca25e
committed
Fix user message overflow detection on share page
Replace CSS line-clamp with max-height to enable proper overflow detection.
The createOverflow function uses scrollHeight > clientHeight to detect when
content overflows, but line-clamp doesn't create scrollable overflow.
This caused expand button to never appear for truncated user messages.
Changes:
- Replace -webkit-line-clamp:3 with max-height: calc(1.5em * 3)
- Update expanded state to use max-height: none and overflow: visible
Note: This fix is targeted specifically to user messages on share page.1 parent a1c0bae commit a6ca25e
File tree
1 file changed
+3
-5
lines changed1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 24 | + | |
28 | 25 | | |
29 | 26 | | |
30 | 27 | | |
31 | | - | |
| 28 | + | |
| 29 | + | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
| |||
0 commit comments