1
 Follower
8
 Likes

Change default line separator of list records to None

Frontend
New

The current default of New Line is rarely correct, since most list records are used to display collections of widgets, instead of a list of text lines.

Having the New Line default appends an extra <br/> on the list contents, which will cause unexpected behaviours. For example, if the list contains inline-block items, they will unexpectedly have a line wrapping between items due to the <br/>. If the list records has a flexbox layout, the extra <br/> element will become a flex item.

In those cases it's difficult to identify what's wrong with the layout, since it's not clear where the <br/> is coming from. And for the rare cases where the <br/> is needed to separate items, its abscence will be easy to spot.

Created on 3 Jan
Comments (1)

Changed the category to Frontend


views
144
Followers
1