Is there a way to determine when a line will break so I can apply different styles?
The design team needs 3 buttons in a grid (3 columns) with specific sizes. They want buttons with content that breaks onto the next line to have a border-radius of 13px, while buttons whose content fits on one line should have a border-radius of 30px.
A solution with its own problem: My initial approach was to change the class based on the number of characters, but it's not entirely accurate, as shown in the images below.
(18 characters) should have a border-radius of 13px because it breaks onto the next line
(19 characters) should have a border-radius of 30px since it does not break onto the next line
Question: Is there another method to achieve this?
Thank you