March 25, 2019
So far I haven’t shared with you the “annoying” moments as a front end engineer. One of such moments is dealing with edge cases. And one of the most classic edge cases is very very very very very very very very long text.
Render a one-line intro to someone, containing the person’s name, title, and one or two badges.
But there are a few requirements from the PM:
Note If the title section has not reached its limit, should not truncate the name. In other words, the name section has higher priority. Should try to shrink the name first before the title runs out of space.
Flexible Box Module 1, sections 7 - 8