Page MenuHomePhabricator

Headers on mobile collapsed differently then on desktop
Closed, ResolvedPublic

Description

I recently came across the following case where the mobile view ends up hiding sections and their headers when collapsed (which is default behaviour on my mobile).

Examples:
Desktop: https://commons.wikimedia.org/w/index.php?title=User_talk:Holger.Ellgaard&oldid=130228207
Mobile: https://commons.m.wikimedia.org/w/index.php?title=User_talk:Holger.Ellgaard&oldid=130228207

Using the two examples below we see that the desktop view shows 30 headings whilst the mobile view only shows 12 headers (when collapsed). Expanding the last of these reveals a new collapsed header which when expanded reveals a new header and so on (for a few headers). The last of these reveals the remaining 14 headers.

So there are 3 headers which misbehave and makes the mobile frontend believe that any later sections should be treated as subsections (i.e. collapsed and hidden by default).

Whilst the source of the weird behaviour is probably that the header includes a template it is still a valid bug as

  1. one would expect the mobile and desktop interface to resolve the problem in the same way.
  2. section links to any "hidden" sections fail to work since the previous header collapses it e.g. compare https://commons.m.wikimedia.org/w/index.php?title=User_talk:Holger.Ellgaard&oldid=130228207#File:Briefmarke_LT_Fluegge.jpg and https://commons.m.wikimedia.org/w/index.php?title=User_talk:Holger.Ellgaard&oldid=130228207#File:Stadsplan_Pl_7800_Gamla_stan.jpg

This affects alpha, beta and stable


Version: unspecified
Severity: normal

Details

Reference
bz69104

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:34 AM
bzimport set Reference to bz69104.
bzimport added a subscriber: Unknown Object (MLST).

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/9102PgLH

{{autotranslate|base=Bsr-user|File:...}} has an unclosed <div id="layouttemplate">.

  • This bug has been marked as a duplicate of bug 58541 ***