()
| 34 | } |
| 35 | |
| 36 | const checkHeight = () => { |
| 37 | const contentHeight = element.scrollHeight; |
| 38 | setShowSeeMore(contentHeight > maxHeight); |
| 39 | }; |
| 40 | |
| 41 | // Wait for browser to complete layout before checking height |
| 42 | // Using double RAF ensures the layout is fully calculated |