I’m sure this has been asked many times before, but I’m having difficulty wording this in a way that gets me results. I have also found very outdated answers (8+ years ago), and they seemed too complicated considering the technology we have today.The modern solutions I’ve found work specifically with text, by using things like -webkit-line-clamp
This project uses Angular, Angular Material, and Sass, so I’m sure there is an elegant way to achieve this. I just need to implement something like the image below:
The content shown inside will be a bar chart, but I don’t think this makes much of a difference.
Again, I’m sorry for asking a, no doubt, extremely repeated question, but I just haven’t found any answers or tutorials. A suggestion for search terms would already help me a lot.
2
Answers
You can get it only with a variable
well, you can create a component, or a directive with this idea, but it’s only change the style.max-height binding with a variable.
As you said its been answered many times, so please upvote this
answer from Design.Garden
stackblitz