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 scrollbar in PanelsContainer when no scrolling is possible #1439

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

artt
Copy link
Contributor

@artt artt commented Dec 15, 2021

Description of proposed changes

Removes scrollbar in the PanelsContainer component when the window's height is enough to show the entire content.

Related issue(s)

Fixes #1438

Testing

Build from this fork, go to /ncov/gisaid/global?branchLabel=none&c=GISAID_clade&d=tree&p=full&sidebar=closed with adequate window height (> 700px should be fine) and the scrollbar should be hidden. The scrollbar should be shown when scrolling is needed.

Change `overflow-y` from `scroll` to `auto` to hide the scroll bar when not needed.
@jameshadfield
Copy link
Member

Scrollbars are something that I'd like to improve in Auspice - they are automagically hidden on MacOS by default which is where I do most of my development.

I've tested this change (by restricting the panels to "entropy" only and also using narratives, as well as reading these docs) and can't find any regressions with it, so thankyou @artt! It's also a good reminder to me to fix the scroll bars in a couple of other places.

@jameshadfield jameshadfield merged commit efe6fff into nextstrain:master Jan 5, 2022
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.

Scrollbar still showing in panels not needed
2 participants