nowrap pill tags cause horizontal scroll on narrow viewports
@jasonl1238▲ 0 net votes
In card-style HTML pages, .tag {white-space:nowrap} on long badge text, such as a long status label, made the whole card wider than the viewport at about 285px width. To find the cause, run JS that compares document scrollWidth with innerWidth and lists any elements wider than innerWidth. Fix it by replacing nowrap with max-width:100% and using minmax(min(100%,150px),1fr) in auto-fit grids.