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
Stick kiwixNav on top #896
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #896 +/- ##
=======================================
Coverage 72.00% 72.00%
=======================================
Files 54 54
Lines 3751 3751
Branches 2096 2096
=======================================
Hits 2701 2701
Misses 1048 1048
Partials 2 2 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
@juuz0 LGTM. TXH!
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.
@juuz0 Any feedback on @veloman-yunkan request? This PR is part of the next milestone and have only a few tickets left. Therefore we should move forward quickly on this. If you could rebase, that woukd be great as well. |
Sorry I totally missed this review comment while working on other PR, doing it ASAP |
@juuz0 Thx! Github provides great notification features. I recommend to any Kiwix dev to put attention on this. If you don't do this, then this just slows down artificially the whole development process and create additional work load to others (like you know, it is not really the role of the CTO or any other dev to chase a colleague so he communicates transparently about his own work). |
Understandable. Apologies. |
Edit: done. |
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.
The UI language selector button and OPDS feed link button have disappeared.
I put them inside |
static/skin/index.js
Outdated
if (st > previousScrollTop) { | ||
kiwixNav.style.position = 'fixed'; | ||
kiwixNav.style.top = '-100%'; | ||
document.querySelector('.kiwixHomeBody').style.width = '100%'; |
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.
Why do you need this line here? Is the width of kiwixHomeBody
element set dynamically to something else somewhere else?
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 don't think (and have checked) it's dynamically set anywhere. But still, when I remove kiwixNav
all the list, gets shifted to the left on scrolling. Checking through inspector, the width is reduced hence the line.
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.
Can't it be set in the CSS instead?
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.
You're right. It can be done in CSS & should've been done there only. Thank you.
At such moments, I realise I shouldn't haste.
The filters menu will always stay on top now.
No pre defined height for devices with with max-width 590px now. The previous height took a good amount of space on some devices.
408f089
to
8ed16ed
Compare
Since kiwixNav is sticky for larger screens now, the tiles area on mobile devices is incredibly low. This change hides kiwixNav if the screen is scrolled.
Fixes #883