X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/25216cc7acedc987c26a159f0b640210c0ef101e..770ffecbecc120d200bebaaf4606dfc055c64008:/src/views/user-panel/user-panel.tsx diff --git a/src/views/user-panel/user-panel.tsx b/src/views/user-panel/user-panel.tsx index 3b2954fc..5fb979a2 100644 --- a/src/views/user-panel/user-panel.tsx +++ b/src/views/user-panel/user-panel.tsx @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; +import React from 'react'; import { WithStyles, withStyles, Tabs, Tab, Paper, Button, Grid } from '@material-ui/core'; import { DataExplorer } from "views-components/data-explorer/data-explorer"; import { connect, DispatchProp } from 'react-redux'; @@ -30,7 +30,7 @@ import { ShareMeIcon, AddIcon } from 'components/icon/icon'; import { USERS_PANEL_ID, openUserCreateDialog } from 'store/users/users-actions'; import { noop } from 'lodash'; -type UserPanelRules = "button"; +type UserPanelRules = "button" | 'root' | 'content'; const styles = withStyles(theme => ({ button: { @@ -39,6 +39,13 @@ const styles = withStyles(theme => ({ textAlign: 'right', alignSelf: 'center' }, + root: { + width: '100%', + }, + content: { + // reserve space for the tab bar + height: `calc(100% - ${theme.spacing.unit * 7}px)`, + } })); export enum UserPanelColumnNames { @@ -149,13 +156,13 @@ export const UserPanel = compose( render() { const { value } = this.state; - return + return {value === 0 && - +
} /> - } +
}
; }