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

fix toolbar stickness issue #522

Merged
merged 5 commits into from
Jun 11, 2020
Merged

Conversation

Shulammite-Aso
Copy link
Collaborator

@Shulammite-Aso Shulammite-Aso commented Jun 1, 2020

fixes #394
Toolbar now only floats when the scroll is on the editor text/body area, in both Rich and Markdown mode.

toolbar3

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with grunt jasmine
  • code is in uniquely-named feature branch and has no merge conflicts
  • PR is descriptively titled
  • PR body includes fixes #0000-style reference to original issue #
  • ask @publiclab/reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software

We have a loose schedule of reviewing and pulling in changes every Tuesday and Friday, and publishing changes on Fridays.

Thanks!

@Shulammite-Aso
Copy link
Collaborator Author

@jywarren @emilyashley @Shreyaa-s @keshav234156 @NitinBhasneria

i think i may need to also make the toolbar responsive on this PR, or do we need to open a different PR for that?

@Shulammite-Aso
Copy link
Collaborator Author

@Shulammite-Aso Shulammite-Aso changed the title [WIP] fix toolbar stickness issue fix toolbar stickness issue Jun 2, 2020
@NitinBhasneria
Copy link
Collaborator

NitinBhasneria commented Jun 3, 2020

Great work @Shulammite-Aso.
I just want to add that the toolbar sickness is not consistent as it is to be. When we scroll up the toolbar disappears and appears again(on further scrolling).
Expected Behaviour: The toolbar should stick when we scroll up(it should not disappear and appear) and it should disappear when toolbar comes to the top of the editor.
editortoolbar

@Shulammite-Aso
Copy link
Collaborator Author

Thanks @NitinBhasneria
I was seeing similar behaviour until i added my last commit, i think it fixed it as i no longer see it, i don't know why can still observe it. Did you pull in my last commit? or maybe you should try reloading your browser.

@NitinBhasneria
Copy link
Collaborator

Thanks @NitinBhasneria
I was seeing similar behaviour until i added my last commit, i think it fixed it as i no longer see it, i don't know why can still observe it. Did you pull in my last commit? or maybe you should try reloading your browser.

Can you attach the gif of changes after the last commit?

@Shulammite-Aso
Copy link
Collaborator Author

Okay @NitinBhasneria i think i understand what you mean better now, the toolbar isn't beginning to float immediately it hits the footer.. I'll try to fix that.

@Shulammite-Aso
Copy link
Collaborator Author

Hi @NitinBhasneria this works fine now i guess, do check.

toolbar3

@emilyashley
Copy link
Member

Awesome, thanks for this! I think it's fine to have it in two different PR's :)

@NitinBhasneria
Copy link
Collaborator

Awesome @Shulammite-Aso.

@shreyaa-s-zz
Copy link
Collaborator

This looks good. Great work @Shulammite-Aso ! 😄

@Shulammite-Aso
Copy link
Collaborator Author

@jywarren i think we can merge this, as it does solve the basic problem, which is making the toolbar accessible while not having it float outside the text area. Other design options will be a matter of preference. We can change it to suit other popular preference if there becomes need for it.

Thanks!!!

@jywarren
Copy link
Member

This is awesome. Thanks for all the reviews and refinements. I'll merge it now!

@jywarren jywarren merged commit a587512 into publiclab:master Jun 11, 2020
@jywarren jywarren mentioned this pull request Jun 24, 2020
5 tasks
@cypherean cypherean mentioned this pull request Jul 7, 2020
5 tasks
@Sagarpreet Sagarpreet mentioned this pull request Oct 7, 2020
14 tasks
Copy link
Contributor

@Sagarpreet Sagarpreet left a comment

Choose a reason for hiding this comment

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

The logic is so simple and clean 😄

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.

Stickness of toolbar
7 participants