Skip to content
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

Remove back-to-top from small pages #1285

Merged
merged 3 commits into from
Jun 2, 2022

Conversation

louismaximepiton
Copy link
Member

Fixes #1231

The threshold I put here is nearly the smallest one, but maybe we can remove it from pages that are at least 2 times the viewport height ?

@louismaximepiton louismaximepiton added v5 docs Improvements or additions to documentation fix labels May 31, 2022
@netlify
Copy link

netlify bot commented May 31, 2022

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 4611245
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/62989ce10a9a2400091af703
😎 Deploy Preview https://deploy-preview-1285--boosted.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@julien-deramond julien-deramond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀
I let @MewenLeHo, @isabellechanclou and @hannahiss check it as well to have their feedback but the implemented threshold seems rather good as it is IMO.

site/assets/js/application.js Outdated Show resolved Hide resolved
@julien-deramond julien-deramond merged commit 5ccdf2c into main Jun 2, 2022
@julien-deramond julien-deramond deleted the main-lmp-back-to-top-remove-from-doc branch June 2, 2022 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation fix v5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doc: Remove back-to-top button when not needed
2 participants