mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/11552] Keep first nav row on same line
PHPBB3-11552
This commit is contained in:
parent
b84f0791b2
commit
77a9635495
1 changed files with 22 additions and 0 deletions
|
@ -442,6 +442,28 @@ function insert_single_user(formId, user)
|
||||||
$('ul.linklist.bulletin li:first-child, ul.linklist.bulletin li.rightside:last-child').addClass('no-bulletin');
|
$('ul.linklist.bulletin li:first-child, ul.linklist.bulletin li.rightside:last-child').addClass('no-bulletin');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Resize navigation block to keep all links on same line
|
||||||
|
$('.navlinks').each(function() {
|
||||||
|
var $this = $(this),
|
||||||
|
left = $this.children().not('.rightside'),
|
||||||
|
right = $this.children('.rightside');
|
||||||
|
|
||||||
|
if (left.length !== 1 || !right.length) return;
|
||||||
|
|
||||||
|
function resize() {
|
||||||
|
var width = 0,
|
||||||
|
diff = left.outerWidth(true) - left.width();
|
||||||
|
|
||||||
|
right.each(function() {
|
||||||
|
width += $(this).outerWidth(true);
|
||||||
|
});
|
||||||
|
left.css('max-width', Math.floor($this.width() - width - diff) + 'px');
|
||||||
|
}
|
||||||
|
|
||||||
|
resize();
|
||||||
|
$(window).resize(resize);
|
||||||
|
});
|
||||||
|
|
||||||
// Responsive breadcrumbs
|
// Responsive breadcrumbs
|
||||||
$('.breadcrumbs').each(function() {
|
$('.breadcrumbs').each(function() {
|
||||||
var $this = $(this),
|
var $this = $(this),
|
||||||
|
|
Loading…
Add table
Reference in a new issue