X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9f8e9bf57453b23786c9f0deffe0c8a14e28c13c..892d0e98eeb20624cf49ca408af6156b4d3b0f55:/src/views/collection-panel/collection-panel.tsx diff --git a/src/views/collection-panel/collection-panel.tsx b/src/views/collection-panel/collection-panel.tsx index e78b1f3d..bcf72edc 100644 --- a/src/views/collection-panel/collection-panel.tsx +++ b/src/views/collection-panel/collection-panel.tsx @@ -33,6 +33,7 @@ import { COLLECTION_PANEL_LOAD_FILES, loadCollectionFiles, COLLECTION_PANEL_LOAD import { Link } from 'react-router-dom'; import { Link as ButtonLink } from '@material-ui/core'; import { ResourceOwnerWithName, ResponsiblePerson } from 'views-components/data-explorer/renderers'; +import { MPVContainer, MPVPanelContent, MPVPanelState } from 'components/multi-panel-view/multi-panel-view'; type CssRules = 'root' | 'button' @@ -49,9 +50,7 @@ type CssRules = 'root' const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { - display: 'flex', - flexFlow: 'column', - height: 'calc(100vh - 130px)', // (100% viewport height) - (top bar + breadcrumbs) + width: '100%', }, button: { cursor: 'pointer' @@ -133,9 +132,14 @@ export const CollectionPanel = withStyles(styles)( class extends React.Component { render() { const { classes, item, dispatch, isWritable, isOldVersion, isLoadingFiles, tooManyFiles } = this.props; + const panelsData: MPVPanelState[] = [ + {name: "Details"}, + {name: "Properties", visible: false}, + {name: "Files"}, + ]; return item - ?
- + ? + }> @@ -186,9 +190,9 @@ export const CollectionPanel = withStyles(styles)( - + - + }> {"Properties"} @@ -220,8 +224,8 @@ export const CollectionPanel = withStyles(styles)( - -
+ + (loadCollectionFiles(this.props.item.uuid)); } } /> -
-
+ + : null; }