Topic on Project:Support desk

Assistance request for mobile interface

7
Evolution and evolvability (talkcontribs)

A recent twitter post pointed out that this template (and some of the templates it transcludes, e.g. this) currently renders poorly in phone screens (example):

  1. menu tabs should stack vertically on narrow screens
  2. all menu tabs should be collapsed by default in the mobile view (like a heading2 section)
  3. div with article text should reflow underneath the infobox section
  4. the infobox should also collapse like a heading_2 section

Any ideas on how to fix these (or a suggestion of who else I could pester) would be v. helpful. I'll start addressing point 1 this weekend, but I'm not certain how to implement the others.

If there's any magicword (equivalent of {{SERVERNAME}}) that could be used to detect whether the mobile version of the site is being viewed, I could at least use some if functions to display differently:

{{#ifeq:{{SERVERNAME}}|{{MOBILESERVERNAME}}|...}}

Thanks in advance!

AhmadF.Cheema (talkcontribs)

Don't know of a magic word, but for hiding content from mobile view, you can use the nomobile class:

<div class="nomobile">
This text will not show in mobile format.
</div>
Evolution and evolvability (talkcontribs)

fantastic! Is there an opposite mobileonly?

AhmadF.Cheema (talkcontribs)

To apply .CSS rules to work only on the mobile version of the site, set those rules in MediaWiki:Mobile.css.

TheDJ (talkcontribs)
Evolution and evolvability (talkcontribs)

Thank you! your flexbox advice helped me fix point 1, and will probably help (I think) with point 3. Control over collapsing sections (points 2 and 4) are trickier.

Is there any way to book direct assistance time with a mediawiki expert?

Evolution and evolvability (talkcontribs)
Reply to "Assistance request for mobile interface"