Fo example sake, excuse my pseudocode! 😂
if twt > len(pod.maxtwt) then
twtPart := slice(twt, pod.maxtwt)
if len(index twtPart) > 20 then
display twt as normal since it’s not worth splitting a twt for less words.
else
split twt into ‘read more’ section
end
end
Hopefully that’s easy enough to understand where I’m going with that hahaha
Fo example sake, excuse my pseudocode! 😂
if twt > len(pod.maxtwt) then
twtPart := slice(twt, pod.maxtwt)
if len(index twtPart[1]) > 100 then
display twt as normal since it’s not worth splitting a twt for less characters.
else
split twt into ‘read more’ section
end
end
Hopefully that’s easy enough to understand where I’m going with that hahaha
I’ll check it out when I can! 👍
A simple class added to the post that have more than X lines should be enough.
And by just nullifying the
max-height
with none
or initial
should do the job, or even better having a read-more
class that add the max-height
and show the button, it would be even cleaner.