![]() |
VOOZH | about |
I'm not sure where to put this whether it goes in Admin Noticeboard, Community Portal, or in Talk:SimpleNavbox, so I am putting it here.
There is currently an issue with navboxes being uncollapsible on mobile, meaning that they are always shown and they do not have collapse buttons on mobile. This can pose a problem with larger navboxes as on mobile they can take up space and they cannot be hidden under current functionality.
(Test case User:Delvin4519/Sandbox2 - open on mobile)
I did some testing and this issue seems to be caused by the use of "mw-collapsible" and "mw-collapsed" tags in Template:SimpleNavbox, which is admin protected. Use of "mw-collapsible" tags seems to be unavailable on mobile, but regular "collapsible" tags work fine on mobile. I've tested a fix in my userspace by removing "mw-" prefix from the simplenavbox code, and testing a navbox with the test code, and the navbox seems to work fine, but that any "mw-" tags must be have the "mw-" prefix removed.
In order to implement this fix, an admin is required to update Template:SimpleNavbox and remove the "mw-" prefix. However, immediately after this update, a bot must go through all instances of {{SimpleNavbox and change any mw-collaps and mw-expanded to collaps and expanded to avoid breaking any navboxes in the process.
Aside from this change, this fix does not require any other major changes, as it can be done standalone. However, it will signficantly improve the mobile experience by allowing navboxes to be collapsed on mobile across all our articles, which is currently broken at the moment.
Thoughts on this fix? If there are no problems, then the only other issue is getting an admin and bot to coordinate this fix back to back. I'm not aware of if it's possible for "mw-collapsible" to work properly on mobile. Delvin4519 (talk) 19:38, 20 December 2023 (UTC)