borkweb / BootstrapMediaWiki

A MediaWiki skin using Bootstrap 4 & FontAwesome 4
Apache License 2.0
266 stars 249 forks source link

On mobile or small screens, the subnavbar dropdown jumps to the first subnavbar link #79

Open badshah400 opened 7 years ago

badshah400 commented 7 years ago

Thanks for the awesome theme! I am working on a wiki instance, where we will likely use yours as the default skin.

On problem I noticed is that on small screens, e.g. on a mobile, the subnavbar turns into a drop-down menu (that's pretty cool!), but on navigating to any page, the drop-down button still has the first link in the subnavbar pre-selected . This makes it impossible to use this drop-down button to navigate to the first link itself, since re-clicking the pre-selected item does not work apparently.

In the screenshot from the borkweb wiki, for instance, the button shows All Locations, since that is the first clickable subnavbar item, but if I actually want to navigate to the All Locations page, clicking on the pre-selected item from the drop-down does not work.

Any help or suggestion for a workaround (the obvious one is to have the Main Page as the first link, but the topbar already has links to the Main Page, making this look rather redundant) would be highly appreciated. Thanks!

screenshot from 2017-04-29 20-52-06