I am trying to create a simple 3 line text (cut off) that is expanded when I click on it - similar to Facebook.
I tried to solve it by using 2 texts - that are displayed/hiden using a simple boolean custom state.
1 is set to cut off the content and the other is set to display the entire text. I switch between the two by using a simple boolean custom state.
It works perfectly well when the text is longer than the 3 lines - however it does not shrink the element if the text is shorter than that.
Example1 - Not shrinking with short text:
Example2 - Working as it should with long text:
In the example 1 the “Text1” that is set to “cut off content” is not shrinking.
One solution would be if I could use the options “shrink element” & “cut off content” in conditionals or also if the “cut off content” would also shrink the element.
Maybe I am missing something.
Thanks in advance for your help!