From ecfd198c3f810398891351e49cb15e0e5e52e70f Mon Sep 17 00:00:00 2001 From: 3D-I <480857+3D-I@users.noreply.github.com> Date: Sun, 9 Aug 2020 21:44:49 +0200 Subject: [PATCH] [ticket/16568] Fix responsive tabs PHPBB3-16568 --- phpBB/adm/style/admin.js | 2 +- phpBB/styles/prosilver/template/forum_fn.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/adm/style/admin.js b/phpBB/adm/style/admin.js index 551c78a4a3..1dea68ed80 100644 --- a/phpBB/adm/style/admin.js +++ b/phpBB/adm/style/admin.js @@ -169,7 +169,7 @@ function parse_document(container) ul = $this.children(), tabs = ul.children().not('[data-skip-responsive]'), links = tabs.children('a'), - item = ul.append('').find('li.responsive-tab'), + item = ul.append('').find('li.responsive-tab'), menu = item.find('.dropdown-contents'), maxHeight = 0, lastWidth = false, diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 2e393657e8..72dc6b7736 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -459,7 +459,7 @@ function parseDocument($container) { $linksFirst = $linksNotSkip.not(filterLast), // The items that will be hidden first $linksLast = $linksNotSkip.filter(filterLast), // The items that will be hidden last persistent = $this.attr('id') === 'nav-main', // Does this list already have a menu (such as quick-links)? - html = '', + html = '', slack = 3; // Vertical slack space (in pixels). Determines how sensitive the script is in determining whether a line-break has occurred. // Add a hidden drop-down menu to each links list (except those that already have one) @@ -813,7 +813,7 @@ function parseDocument($container) { $ul = $this.children(), $tabs = $ul.children().not('[data-skip-responsive]'), $links = $tabs.children('a'), - $item = $ul.append('').find('li.responsive-tab'), + $item = $ul.append('').find('li.responsive-tab'), $menu = $item.find('.dropdown-contents'), maxHeight = 0, lastWidth = false,