diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index de4835f2ce..d8117b6401 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -580,6 +580,9 @@ function parseDocument($container) { } // STEP 4: Last responsive set - compact + if (!$linksLast.length) { + return; // No other links to hide, can't do more + } if (compact) { $this.removeClass('compact'); compact = false; @@ -604,9 +607,6 @@ function parseDocument($container) { $this.addClass('compact'); compact = true; } - if ($this.height() <= maxHeight) { - return; - } } if (!persistent) {