stjn created this task. stjn added projects: wikiba.se, Wikidata. Restricted Application added a subscriber: Aklapper. |
Wikidata interface currently features a number of sticky elements which are powered by _javascript_. This is a cool feature to have, but it can be realised entirely in CSS, which will work better in most modern browsers.
.wikibase-entitytermsforlanguagelistview-header { position: -webkit-sticky; position: sticky; top: 0; }
I suggest that having to do calculations on scroll is too much for a relatively small enhancement and we can use CSS instead (at the very least for all browsers except IE, if we need that support). This will be more performant and responsive (now I routinely see the table header getting carried away from its content).
This dependency is related to current mechanism for sticking:
https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/a3736ac4e00dc33f78cc87364fd6feb3ff2301f2/view/resources/jquery/jquery.sticknode.js
Cc: Aklapper, stjn, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, D3r1ck01, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs