The point (screen width) between the collapsed navbar, menu button only and the horizontal 2 or 1 row navbar is defined by the grid-float-breakpoint.
Set this value to a higher value, default value is 768px will skip the 2 row fase. Try 992px, the boundary of the medium grid.
To change grid-float-breakpoint you will have two option:
- download the source from github, change
@grid-float-breakpoint
in variables.less and recompile bootstrap
- use the customizer and download you own copy
See also: https://stackoverflow.com/a/18944192/1596547
UPDATE
by cvrebert on https://github.com/twbs/bootstrap/issues/11539#issuecomment-28805244:
Your options are:
- change the grid float breakpoint so that the navbar stays collapsed until the screen is wide enough for your big navbar
- use responsive utility classes to hide some parts of the navbar at narrower screen widths so that it fits at those widths
- rework your navbar items so that they're shorter / less verbose
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…