From ccc8df0ef9cc6ce6e76c5078b3fa4ed8162c9b76 Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Fri, 9 Sep 2022 16:01:20 -0700 Subject: [PATCH] Don't print table of contents on page with no table of contents e.g. Special:BlankPage This was causing unexpected visual regressions on Pixel Follow up to 9c6f6709c Bug: T313060 Change-Id: If8111f95be53e4504ed49d4ea140f62ac98e8e1b --- includes/templates/TableOfContentsContainer.mustache | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/templates/TableOfContentsContainer.mustache b/includes/templates/TableOfContentsContainer.mustache index 825b4be1..91d5004f 100644 --- a/includes/templates/TableOfContentsContainer.mustache +++ b/includes/templates/TableOfContentsContainer.mustache @@ -1,6 +1,8 @@
{{! T313060 Additional container div needed to prevent the sticky element from being siblings with the footer }} + {{#data-toc}}
- {{#data-toc}}{{>TableOfContents}}{{/data-toc}} + {{>TableOfContents}}
+ {{/data-toc}}