With just the max-height you won't be able to render the "view more" button as you don't know, I am using react-use-measure to measure the post height to them show the button, i am not very happy with this solution as it cause the post content to render twice in case the condition is true, wish there was a css only solution for that.
Ooh damn, yup that's annoying.
I selfishly hope Flutter dues have some more straightforward solution for this 😉
Please Login to reply.
No replies yet.