Page MenuHomePhabricator

Navbox bugs in Minerva
Closed, ResolvedPublicBUG REPORT

Description

What is the problem?

There are a couple of bugs with navboxes on Minerva when viewing them in Realtime Preview:

  • Some navboxes are collapsed and cannot be expanded
  • In some navboxes, not all the content is shown

It should be noted that when viewing the article normally on Minerva, unlike in Vector, the navboxes are always expanded and there isn't a way to collapse them. I guess Realtime Preview should behave the same.

Steps to reproduce problem
  1. https://pl.wikipedia.org/w/index.php?title=Barack_Obama&action=edit&useskin=minerva
  2. Open realtime preview
  3. Scroll down to near the bottom of the page
  4. The very last navbox (titled Ludzie roku tygodnika „Time”) is collapsed and I see no way of expanding it
  5. The fourth navbox (titled Delegacja stanu Illinois do 112. Kongresu USA (2011-2013)) only shows two names, whereas in the article itself there are 10s of names
Environment

Browser: Firefox 91, Chromium 87
Wiki(s): https://pl.wikipedia.org MediaWiki 1.39.0-wmf.8 (a4aaf3c) 01:53, 19 April 2022.
Editor: WikiEditor 0.5.3 (b498cdd) 10:07, 18 April 2022.

Screenshots

The fourth navbox as it appears in full in the article:

fourth_navbox_article.png (540×1 px, 136 KB)

The fourth navbox as it appears truncated in Realtime Preview:

fourth_navbox_rtp.png (673×1 px, 162 KB)

Event Timeline

MusikAnimal subscribed.

It's worth noting that the same is true for the preexisting live preview, which as a consequence effects Realtime Preview. I checked and this behaviour is present prior to our refactor of the preview functionality, so I believe this may be an issue with Minerva.

Minerva is designed for mobile use, and always showing collapsible content as expanded (as you see on initial page load) is merely a workaround until it receives special treatment: T111565. In the meantime, a quick fix might be to force .mw-collapsible-content to be shown in Minverva's CSS, which would then persist in dynamically generated content such as previews.

Izno assigned this task to Jdlrobson.
Izno subscribed.

Based on the reproduction instructions, this is fixed now.