Prevent individual tabbers from line-breaking

This commit is contained in:
TK-999 2017-10-16 17:27:26 +02:00
parent 0d5f1cd25f
commit 82379c9619
2 changed files with 4 additions and 0 deletions

View file

@ -18,6 +18,7 @@ ul.tabbernav li a {
border-bottom: none;
background: #F2F7FF;
text-decoration: none;
white-space: pre;
}
ul.tabbernav li a:link {

View file

@ -8,6 +8,9 @@
tabContent.each(function() {
var anchor = $('<a>').text(this.title).attr('title', this.title).attr('href', 'javascript:void(0);');
$('<li>').append(anchor).appendTo(nav);
// Append a manual word break point after each tab
nav.append($('<wbr>'));
});
$this.prepend(nav);