A narrow-phone layout bug was fixed by sizing chips by share, not by their words

On a 390 px phone, the Sound toggle at the end of an AI composer's control bar was clipped in half by the screen edge. The root cause was that every chip was set to its content width, so their combined minimum exceeded the available space. The fix gave the Model and Settings chips fixed proportional shares of the row, reduced Sound to a 44 px icon button, and let overflowing labels truncate with an ellipsis. The author also noted that a grid sizing trick meant to prevent layout shift had stopped the visible label from truncating, and that switching to minmax(0, 1fr) resolved it.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in