Topic on Extension talk:MobileFrontend

Table of Contents appears everywhere on tablets

2
2A02:AB88:B2C0:EA00:9C72:1FF9:B58A:9657 (talkcontribs)

If the browser is wide enough, a TOC appears on all pages, even on the main page, and on pages without section headings. Looks like this is added by Javascript, and the criteria to determine whether a TOC should be included are completely ignored. On my main page, MF places an empty TOC at the bottom of the page. How can I disable this undesirable behavior? It ignores __NOTOC__, it ignores everything.

2A02:AB88:B2C0:EA00:D0D:7CCF:7551:C3DF (talkcontribs)

OK, I figured it out. The problem comes from the Minerva skin, and is already fixed on github but not included in the download served for MW 1.31. The latest development version of the skins/MinervaNeue/resources/skins.minerva.tablet.scripts/toc.js file should be used.

Reply to "Table of Contents appears everywhere on tablets"