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

Styling changes #849

Merged
merged 3 commits into from
Jan 25, 2020
Merged

Styling changes #849

merged 3 commits into from
Jan 25, 2020

Conversation

trvrb
Copy link
Member

@trvrb trvrb commented Jan 25, 2020

This PR does:

  1. Makes min map zoom slightly wider to better fit the globe in a grid view
  2. Hides sidebar if window path contains gisaid
  3. Always puts author in the tip hover panel

(2) Should be revisited to allow sidebar state in the URL, but I think this is a good solution for the time being.

When using grid view with a globally distributed pathogen on a laptop display, the previous min zoom level of 2 could include all datapoints.
To have GISAID iFrame, we're supposed to hide the sidebar. It would be nice to have this as a general flag in the URL (like grid, etc...), but I thought this was a fine solution for the intermediate term.
GISAID wanted attribution displayed on hover. They were requesting Originating Lab and Submitting Lab. This is my attempted compromise.
@trvrb trvrb merged commit f9a8b70 into master Jan 25, 2020
@trvrb trvrb deleted the styling branch January 25, 2020 05:46
@dpark01
Copy link

dpark01 commented Jun 30, 2020

Hi @trvrb -- out of curiosity, what was the motivation for hiding the sidebar if the window path contains gisaid?

@trvrb
Copy link
Member Author

trvrb commented Jun 30, 2020

@dpark01 ---

This was at the request of GISAID to make https://www.gisaid.org/epiflu-applications/next-hcov-19-app/ work nicely via an iFrame. They link to https://nextstrain.org/ncov/gisaid, which is exactly https://nextstrain.org/ncov except dropping the title. We didn't mean for this to catch things like https://auspice.broadinstitute.org/sars-cov-2/boston/gisaid-4k. We should narrow down the regex URL match.

I think we may have added "hide sidebar" to the query params anyway and this may be able to fully dropped at this point in favor of GISAID adding this "hide sidebar" request to their iFrame.

@cmloreth
Copy link

Hi @trvrb just wondering if there were any updates on being able to narrow down the regex URL match for paths containing gisaid? thanks!

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