Use display: inline-flex for better expand-to-fit sizing.