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

fix(capture): enables scrolling in Capture page #182

Merged
merged 5 commits into from
Oct 30, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/CaptureTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ const CaptureTable = () => {
)}
</Navbar>
</Grid>
<Grid item>
<Grid
item
style={{ height: '100%', overflowX: 'hidden', overflowY: 'scroll' }}
nmcharlton marked this conversation as resolved.
Show resolved Hide resolved
>
<div className={classes.tableContainer} ref={scrollRef}>
<Grid
container
Expand Down
16 changes: 7 additions & 9 deletions src/views/CapturesView.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ function CapturesView() {
direction="column"
style={{ flexWrap: 'nowrap', height: '100%' }}
>
<Grid item container style={{ height: '100%', overflow: 'hidden' }}>
<CapturesProvider>
<SpeciesProvider>
<TagsProvider>
<CaptureTable />
</TagsProvider>
</SpeciesProvider>
</CapturesProvider>
</Grid>
<CapturesProvider>
<SpeciesProvider>
<TagsProvider>
<CaptureTable />
</TagsProvider>
</SpeciesProvider>
</CapturesProvider>
</Grid>
);
}
Expand Down