Apply component maxWidth to text