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

Removed toolbar scrollbar #10790

Merged
merged 2 commits into from Aug 13, 2021
Merged

Conversation

3coins
Copy link
Contributor

@3coins 3coins commented Aug 9, 2021

References

This PR fixes #10189

Code changes

  • Removed css styles for toolbar hover

User-facing changes

remove-toolbar-scroll-1

Backwards-incompatible changes

None

@jupyterlab-dev-mode
Copy link

Thanks for making a pull request to JupyterLab!

To try out this branch on binder, follow this link: Binder

@github-actions github-actions bot added Design System CSS pkg:ui-components tag:CSS For general CSS related issues and pecadilloes labels Aug 9, 2021
@3coins 3coins changed the title Removed toolbar scrollbar (#10189) Removed toolbar scrollbar Aug 9, 2021
@3coins
Copy link
Contributor Author

3coins commented Aug 9, 2021

cc @jtpio

Copy link
Member

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

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

LGTM @3coins

You will make Firefox users happier 😉

@krassowski
Copy link
Member

I think there might be more changes needed to remove it cleanely.

@krassowski
Copy link
Member

Looking at #8417 I think this line can be removed too:

this.addClass('jp-scrollbar-tiny');

Not 100% sure though.

@fcollonval
Copy link
Member

fcollonval commented Aug 11, 2021

You may be right... I'm unsure we have to remove the class in case some JupyterLab remix rely on it?

The relevant PR is #8417

@3coins
Copy link
Contributor Author

3coins commented Aug 11, 2021

#8417

With the new responsive toolbar, scrollbar shouldn't appear at all, so this should be redundant; in an ideal world this should be removed. We need to make sure that both this and the responsive change are merged together into a release.

@krassowski
Copy link
Member

Yes, I think the discussion is at making sure we remove things added in #8417. There is however a case for keeping some of that code as it could be used for #10305 hence I only suggested removing one extra line which is no longer needed.

@3coins
Copy link
Contributor Author

3coins commented Aug 11, 2021

Yes, I think the discussion is at making sure we remove things added in #8417. There is however a case for keeping some of that code as it could be used for #10305 hence I only suggested removing one extra line which is no longer needed.

I misread @fcollonval's comments earlier, agree that removing just that line should be harmless. Latest push removed that line.

@blink1073 blink1073 added the bug label Aug 11, 2021
@blink1073 blink1073 added this to the 3.1.x milestone Aug 11, 2021
@isabela-pf
Copy link
Contributor

I'm excited to see the toolbar's scrollbar removed (probably since I'm one of those pesky Firefox users)! When I opened the binder and made my window narrow, I did find the scrollbar removed and the menu items overlapping with each other so that I can't read them.

Screen Shot 2021-08-11 at 12 39 50 PM

I'm using Firefox 90.0.2. Is this tied to the comments about how to remove the toolbar cleanly?

@3coins
Copy link
Contributor Author

3coins commented Aug 12, 2021

@isabela-pf
Thanks for reviewing this change!
That needs some more work on the responsive toolbar. One solution is to expand the toolbar popup height dynamically so that all the items can fit. Here is a POC.

Screen Shot 2021-08-11 at 9 56 52 PM

Let me update this and send out another commit.

I'm using Firefox 90.0.2. Is this tied to the comments about how to remove the toolbar cleanly?

No, the comments above were referring to removing the custom scrollbar styles on the toolbar which is redundant with the responsive approach.

@fcollonval
Copy link
Member

fcollonval commented Aug 12, 2021

If you gonna update a bit the styles, I would also suggest to put the ... icon on the far right of the toolbar. This will fit better the pattern that additional elements are to be found from that button. And its position won't change depending on which toolbar item gets hidden.

From your latest screenshot:

image

@3coins
Copy link
Contributor Author

3coins commented Aug 12, 2021

@isabela-pf
I have fixed the issue, the toolbar popup will expand to fit the items now.

@fcollonval
Fixed the css to push the ellipsis to the right of toolbar.

@fcollonval
Copy link
Member

Great changes.

I wonder if the item in the toolbar popup should be aligned left or right (right seems better - so buttons are closer to the mouse cursor). The justify current alignment on the second line does not look great.

image

@3coins
Copy link
Contributor Author

3coins commented Aug 13, 2021

@fcollonval
The kernel status icon has an auto margin on it that causes it to take most of the remaining space. I tried to address it in this PR.

@fcollonval
Copy link
Member

The kernel status icon has an auto margin on it that causes it to take most of the remaining space. I tried to address it in this PR.

Thanks for the follow-up. This is then good to me.

@fcollonval fcollonval merged commit e66585b into jupyterlab:master Aug 13, 2021
@3coins 3coins deleted the remove-toolbar-scroll branch August 13, 2021 16:26
@jhgoebbert
Copy link

This is great news for all Firefox users! Thank you!

@fcollonval
Copy link
Member

@meeseeksdev please backport to 3.1.x

@lumberbot-app
Copy link

lumberbot-app bot commented Aug 14, 2021

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
$ git checkout 3.1.x
$ git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
$ git cherry-pick -m1 e66585bc4bf6bdc824370be235b52fcfc74bc7c2
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
$ git commit -am 'Backport PR #10790: Removed toolbar scrollbar'
  1. Push to a named branch :
git push YOURFORK 3.1.x:auto-backport-of-pr-10790-on-3.1.x
  1. Create a PR against branch 3.1.x, I would have named this PR:

"Backport PR #10790 on branch 3.1.x"

And apply the correct labels and milestones.

Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon!

If these instruction are inaccurate, feel free to suggest an improvement.

fcollonval pushed a commit to fcollonval/jupyterlab that referenced this pull request Aug 16, 2021
* Removed toolbar scrollbar (jupyterlab#10189)

* Updated responsive toolbar styles to fit content

Co-authored-by: Piyush Jain <pijain@amazon.com>
@jtpio
Copy link
Member

jtpio commented Aug 26, 2021

Thanks all! The new responsive toolbar seems to be working well on mobile devices and is a good alternative to having the scrollbar.

3coins pushed a commit to 3coins/jupyterlab that referenced this pull request Sep 28, 2021
3coins pushed a commit to 3coins/jupyterlab that referenced this pull request Sep 29, 2021
3coins pushed a commit to 3coins/jupyterlab that referenced this pull request Sep 29, 2021
blink1073 pushed a commit that referenced this pull request Sep 29, 2021
* Manual backport of #10720, #10790, #11108

* Fix for failing UI tests

Co-authored-by: Piyush Jain <pijain@amazon.com>
@github-actions github-actions bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Feb 23, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Design System CSS pkg:notebook pkg:ui-components status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. tag:CSS For general CSS related issues and pecadilloes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changing cell type only works with keyboard, but not with mouse in Firefox
7 participants