Page MenuHomePhabricator

Table of contents looks weird when only one lead section
Closed, ResolvedPublic

Description

On this article https://m.mediawiki.org/wiki/Architecture_Summit_2014/Dinner_Sign-Up
A table of contents appears after all the headings. This seems a little weird.
Expected: Should be above first heading.


Version: unspecified
Severity: normal

Details

Reference
bz60478

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:05 AM
bzimport added a project: MobileFrontend-beta.
bzimport set Reference to bz60478.
bzimport added a subscriber: Unknown Object (MLST).

Maybe related to bug 60479 ?

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1650

jgonera wrote:

This is because the page uses h3 as section headings. Fix for this should also fix bug 60479.

It seems a suitable workaround for time being would be to either:

  1. Not show the table of contents
  2. Insert table of contents before first h2/h3/h4/h5

So...?
Maryana any guidance so we can get this bug fixed or closed as wont fix ?

In the Android app we disable the ToC if there's only one section, fwiw.

Change 137836 had a related patch set uploaded by Jdlrobson:
Collapse on the highest available heading level

https://gerrit.wikimedia.org/r/137836

Change 137836 merged by jenkins-bot:
Collapse on the highest available heading level

https://gerrit.wikimedia.org/r/137836