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
This commit is contained in:
parent
475c237a5e
commit
ccc8df0ef9
|
@ -1,6 +1,8 @@
|
|||
<div class="mw-table-of-contents-container">
|
||||
{{! T313060 Additional container div needed to prevent the sticky element from being siblings with the footer }}
|
||||
{{#data-toc}}
|
||||
<div class="vector-sticky-toc-container mw-sticky-header-element">
|
||||
{{#data-toc}}{{>TableOfContents}}{{/data-toc}}
|
||||
{{>TableOfContents}}
|
||||
</div>
|
||||
{{/data-toc}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue