When the text in the breadcrumbs within Bootstrap4-aplha6 becomes too lengthy, the last crumb will move to the next line:
<nav class="breadcrumb">
<a class="breadcrumb-item" href="#">Home</a>
<a class="breadcrumb-item" href="#">Library</a>
<a class="breadcrumb-item" href="#">Data</a>
<span class="breadcrumb-item active">A title that is slightly too long</span>
</nav>
Results in:
---------------------------------
| |
| Home / Library / Data |
| / A title that is slightly to…|
| |
| |
| |
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
However, I am looking for this layout instead:
---------------------------------
| |
| Home / Library / Data / A titl… |
| |
| |
| |
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
I have attempted to address this using white-space: nowrap
, overflow: hidden
, and text-overflow: ellipsis
. These solutions do not work effectively due to the breadcrumb-items being block elements floated left in Bootstrap4.
Has anyone discovered a way to resolve this issue without modifying all the Bootstrap classes (ellipsis functionality is not essential)?