Change legend items to inline-block to prevent line breaking.