Hi, connoisseurs.
I am making up a catalog of goods with a rather ornate system of sections and subsections, and I ran into such a task.
There is a list of sections with subsections. These subsections can be as many as you like, and maybe not at all. So we must somehow limit the number of subsections shown.
I will explain. If the number of subsections fits into 2 lines, then everything is OK, and if not, then what did not fit should be hidden and at the end add the "more" link. Something like that.
I will be glad to any help.