Last modified: 2014-02-12 23:45:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T24187, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22187 - Reformatting of Portals
Reformatting of Portals
Status: RESOLVED DUPLICATE of bug 30887
Product: MobileFrontend
Classification: Unclassified
Feature requests (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-20 11:29 UTC by Andrea Di Menna
Modified: 2014-02-12 23:45 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andrea Di Menna 2010-01-20 11:29:14 UTC
Some parts of Portals in the full Wikipedia are rendered using a two-columns layout (two floating divs with percentage width).
When shown in a mobile device text and images are often exceeding the limit of the colums.
It would be better to remove CSS width attribute from those columns and display them as blocks.

E.g. http://en.m.wikipedia.org/wiki/Portal:Literature
Comment 1 Derk-Jan Hartman 2010-01-20 15:09:33 UTC
That is really getting to specific to generalize for all languages I think.

I was pondering however that perhaps the mobile interface could load CSS from [[MediaWiki:Handheld.css]] from each language. Or perhaps a new [[MediaWiki:Mobile.css]]. What do you think Hampton ? The styling changes required for each language simply cannot all be handled in the core I think.
Comment 2 Andrea Di Menna 2010-01-20 15:24:58 UTC
The problem is that, from what I can see, those divs have no id nor class. They have inline style attributes.
That means they are not easily reachable from CSS.
Comment 3 Brion Vibber 2011-12-07 21:29:05 UTC
Proper thing to do is to fix the portals themselves to have better styles -- they have the same problems in "desktop browsers" if the window is narrow.

I'm not sure how easily we can detect this sort of case automatically: the table layouts quite legitimately fit within the screen area, they just look terrible because the content within them doesn't fit those small sizes well.

Adding a min-width: to the CSS could force them to scroll as recommended in bug 32123, but this is still sub-ideal. Better would be either smart use of floats to let them "collapse" on narrow screens, or using @media sections to check when the window width is relatively small and switch to a different layout.
Comment 4 Jon 2012-09-18 04:59:39 UTC
This is a duplicate and at least on en wiki portal pages were cleaned up (see bug 30887) and is part of the whole "inline styles problem" (see bug 35704)

See http://www.mediawiki.org/wiki/Making_MediaWiki_Mobile_Friendly#Two_column_layouts

*** This bug has been marked as a duplicate of bug 30887 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links