-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replacing the malihu-custom-scrollbar plugin with some CSS #1175
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this briefly and also looked at the code. Here is an illustration of how this affects the YSO front page:
Mostly this looks good. A few notes:
- The waypoint callbacks are working on the vocabulary home page and the alphabetical index (new items are loaded when you scroll down enough). But it doesn't work on the New tab that shows new concepts. You can scroll all the way down the initial list but nothing happens. This must be fixed.
- The scrollbar is a bit narrower than the old one, but that's OK. It's also quite a bit higher. I think this should be adjusted closer to the original height. The colors are the same as in the default Skosmos look and feel, which is OK; the above screenshot shows the Finto style, where the custom CSS should be adjusted to fix the colors (but we can do that after merging this).
- The commits contained quite a bit of whitespace-only changes which make the reviewing of changes a bit harder than necessary. But I think we can live with those, as this is simple enough. But for future PRs it would be better either not to reformat existing code, or if you have to, then do it in a separate commit (or even a PR) so that it's possible to ignore when reviewing.
I have no idea why we were using a static copy of resource/css/jquery.mCustomScrollbar.css
instead of relying on the one under the vendor/
directory managed by Composer, but I'm glad we're getting rid of it :)
No idea why the CSS was a static import. Probably some brain fart from way back. :) |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
I tested this again using both Firefox 88 and Chromium on Ubuntu 20.04. I see two issues with the callback on the New tab on both browsers:
Also, after the requests have completed, there is a gap in the list of new concepts (here, "compression garment" should have been followed by other concepts from November 2020, e.g. "compression treatment", not concepts from April 2018):
I didn't have time to look at this in very much detail but it seems to me that the height of the new scrollbar is still very different from the old one. It is also much higher on Firefox than Chromium. I'll look at this again once the callback issues have been resolved. |
Doesn't look 100% the same but helps to get rid of one unmaintained plugin that's semi-useless.