-
Notifications
You must be signed in to change notification settings - Fork 44
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
Implement expand button for Vitessce #1651
Conversation
@@ -27,6 +27,7 @@ export const useVitessceContainerStyles = makeStyles(theme => ({ | |||
transition: 'height 200ms ease', | |||
// Custom | |||
height: 'auto', | |||
marginTop: '30px', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not find a better way to make the react-grid-layout not render on top of the "Expand/Collapse" button. It is because of the usage of position: absolute
in expandButtonContainer
, which is necessary for the button to be rendered on the right side of the screen
Size Change: +7.27 kB (0%) Total Size: 11.4 MB
ℹ️ View Unchanged
|
.vitessceClear { | ||
text-align: center; | ||
text-align: right; | ||
width: 100%; | ||
margin-bottom: 10px; | ||
padding: 10px; | ||
display: 'flex'; | ||
flex: 1; | ||
margin-top: auto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so that the "Edit" button appears on the top right side of the screen, side by side with the Demo description
Coverage Report
File CoverageNo changed files found. |
Hi @ivababukova , thanks! Is there a way to do this without modifying any code in It should be possible as this is how the HuBMAP Portal implements the expand button, with only code outside of the Vitessce core https://portal.hubmapconsortium.org/browse/dataset/664b8227e17ee2a35a504dd8c19c2531 |
@keller-mark can you point me to the source code of how the expand button for HuBMAP Portal was implemented? |
@keller-mark I reimplemented this only modifying files under |
Hi @ivababukova, great to see the new implementation. Some comments:
|
Co-authored-by: Mark Keller <7525285+keller-mark@users.noreply.github.com>
Thanks for the review @keller-mark I have fixed those two issues, can you take another look at the PR? |
The browser window resizing still did not work in expanded mode - while the vitessce views did not collapse, the width of the full vitessce component did not change during resizing, i think due to the |
Thank you for checking this thoroughly and fixing it, Mark! I didn't notice this problem when I tested for this case |
Fixes #1570
Background
Change List
react-grid-layout
on click.data-expanded
propertly. In css, there are 2 types of style defined: for whendata-expanded=expanded
and for when it is not.Here are screenshots of how this looks in collapsed and expanded mode:
Checklist
vitessce-python
andvitessce-r
if this is a release PR