Page MenuHomePhabricator

Implement fixed position menus gadget as an option in core
Closed, DeclinedPublic

Description

It has been requested in Hebrew Wikipedia by some users to allow customization of the menus: Sidebar menu and top menu [edit, history etc], to have fixed position, so when scrolling the page they will still have easy access to menus.

I enable this option as a gadget, containing the following CSS:

div#mw-panel{
position:fixed;
}
#p-lang .body{
max-height:100px;
overflow:auto;
}
div#mw-head{
position:fixed;
background:#FFFFFF url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAsCAIAAAArRUU2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADpJREFUeF5VjUkOAEAIwoD//7lzGJd4MJHGSoBImkFETP67CdLldUd7KC6f8fv3+psd8znbtU5x354HaWQjOx76v7MAAAAASUVORK5CYII=") repeat-x bottom;
}

(the gadget page itself:
http://he.wikipedia.org/wiki/%D7%9E%D7%93%D7%99%D7%94_%D7%95%D7%99%D7%A7%D7%99:Gadget-FixedMenu.css )

It works well as a gadget, but some people suggested it isn't specific to Hebrew and maybe other projects may want it too: so I would like to suggest adding it as an option in preference for fixed menus.

Known issues

*Works only in vector skin.
*As the sidebar may have height larger the document height, part of it can be inaccessible in some situations. For this reason I added limitation of 100px to interwikis (p-lang). This may not be enough, and it dependence on document size (user specific - resulotion/window size), sidebar height ([[mediawiki:sidebar]]/extensions that adds to sidebar - site specific) and so on. This issue is relevant only to the sidebar and not to the top menu.
*Browsers compatibility - the above is very simple css, but some old browsers such as IE6 doesn't support position:fixed.


Version: unspecified
Severity: enhancement

Details

Reference
bz30374

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:52 PM
bzimport set Reference to bz30374.
bzimport added a subscriber: Unknown Object (MLST).

Imho, this is pretty much what Gadgets are for.

The ability to share Gadgets across wikis is being worked on at this very moment and is scheduled to be released by the time MediaWiki 1.19 is ready.

Roughly:

  • Develop gadgets like we do now
  • If you want to share something, move or ask someone to move it to the central gadget wiki (probably mediawiki.org) and mark it as a Shared gadget.
  • At this point it will be in the preferences on all wikis as a Global gadget that anyone anywhere can enable.

We support this in some of the older skins (floating sidebar preference). Should probably remove that from core and make it a gadget like Krinkle suggests.