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

Add scroll to top button to web page #92

Merged
merged 4 commits into from
Mar 24, 2020
Merged

Conversation

Emuohwo
Copy link

@Emuohwo Emuohwo commented Mar 18, 2020

Description

Describe the changes made and why they were made.
Added a container in footer.pug for the scroll to top button: this is the container where the scroll button is located.
Added js code for the button to common.js: I want to button to trigger when a user scroll to a certain level downward
I did the styling of the button in _global.scss: This is to give the button a good look

Related issues and discussion

#90

Screenshots, if any

This is the look on small screen
image
On a bigger screen
image

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • [ x] Run the tests

@Emuohwo
Copy link
Author

Emuohwo commented Mar 18, 2020

@AdrianBZG @Nikhil-Vats Kindly review Pull Request for issue #90

@Nikhil-Vats Nikhil-Vats self-requested a review March 20, 2020 17:16
@Nikhil-Vats
Copy link
Member

Nikhil-Vats commented Mar 20, 2020

Nice work @Emuohwo. Everything works as expected. 💯 👍 🎉

I think this class is not used anywhere and can be removed. I tried removing it and everything works just fine. @AdrianBZG what do you think?

One more thing, for smaller screens the button overlaps footer content -
overlapping button at 30px

I think we can increase bottom to 40px and it will be better that way, see -
bottom:40px-ss1

bottom:40px-ss2

@AdrianBZG
Copy link
Member

Hi @Emuohwo ,

Nice work, if you could address the issue pointed by @Nikhil-Vats (increase bottom to 40px), we'd happy to accept this PR 😄

@AdrianBZG AdrianBZG self-requested a review March 20, 2020 18:53
@Emuohwo
Copy link
Author

Emuohwo commented Mar 20, 2020

@Nikhil-Vats and @AdrianBZG consider it done.

@Emuohwo
Copy link
Author

Emuohwo commented Mar 21, 2020

@Nikhil-Vats and @AdrianBZG the scroll button still covered part of the footer content even after I have increase bottom to 40px
image
I now increase the bottom to 50px and added a media query of max-width: 600px and set it to 75px. here's what I got
image

image
Should I continue with your recommendation or I should use the 50px and media query. What do you advice?

@Nikhil-Vats
Copy link
Member

@Emuohwo Nice work on the media query! 🎉 💯
Can you change the media-query from max-width:600px to max-width:785px, it would look better that way?

@Emuohwo
Copy link
Author

Emuohwo commented Mar 23, 2020

@Nikhil-Vats I have increased the width to 785px for the media query.

@Nikhil-Vats
Copy link
Member

@Emuohwo Good work! 💯

@AdrianBZG AdrianBZG merged commit 2d7210b into intermine:master Mar 24, 2020
AdrianBZG pushed a commit that referenced this pull request Sep 3, 2020
#92)

This commit addresses these two issues:

1)
Some mine/class combinatins may return partial data or no results at all.
This is handled by displaying informational cards so the user is made
aware of this.

2)
Some mine/class combinations may not have one or more of the default
constraints. For now the unavailable constraints are just removed from
the view.

Closes: #91

Squashed commits:
* Disable constraints for unavailable constraints in mine/class
* Handle errors when constraint path is unavailable
* Inform the user when there are no gene lengths for the mine/class combo
* Inform the user when there is no table data for the mine/class combo
* Inform the user when there is no organism summary for the mine/class combo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants