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

Structure hide buttons on desktop until hover #31

Merged
merged 4 commits into from
May 26, 2023

Conversation

janosh
Copy link
Owner

@janosh janosh commented May 26, 2023

106ef0c fix type ChemicalElement: allow null for potentially empty keys
92c8547 fix landing page layout on wide screens
c9f0384 fix ElementScatter tooltip_point unintentionally a required prop
8043e0f Structure add reveal_buttons: boolean | number = 500

only show the buttons when hovering over the canvas on desktop screens mobile screens don't have hover, so by default the buttons are always shown on a canvas of width below 500px

rename prop show_controls to controls_open
@janosh janosh added enhancement New feature or request structure 3d Structure viewer labels May 26, 2023
@janosh janosh enabled auto-merge (squash) May 26, 2023 00:13
@janosh janosh merged commit 0c548e2 into main May 26, 2023
4 checks passed
@janosh janosh deleted the structure-hide-buttons-on-desktop-until-hover branch May 26, 2023 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request structure 3d Structure viewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant