X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/4b961d16b8f8ef8afbd13697a79fe4684acd0416..fd470d8f7838b57777492289e6e4195b6c39bd2e:/src/components/data-explorer/data-explorer.tsx diff --git a/src/components/data-explorer/data-explorer.tsx b/src/components/data-explorer/data-explorer.tsx index 5f019577..7107bd70 100644 --- a/src/components/data-explorer/data-explorer.tsx +++ b/src/components/data-explorer/data-explorer.tsx @@ -14,7 +14,7 @@ import { DataTableFilters } from '~/components/data-table-filters/data-table-fil import { MoreOptionsIcon } from '~/components/icon/icon'; import { PaperProps } from '@material-ui/core/Paper'; -type CssRules = 'searchBox' | "toolbar" | "footer" | "root" | 'moreOptionsButton' | 'title'; +type CssRules = 'searchBox' | "toolbar" | "toolbarUnderTitle" | "footer" | "root" | 'moreOptionsButton' | 'title'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ searchBox: { @@ -23,6 +23,9 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ toolbar: { paddingTop: theme.spacing.unit * 2 }, + toolbarUnderTitle: { + paddingTop: 0 + }, footer: { overflow: 'auto' }, @@ -55,9 +58,9 @@ interface DataExplorerDataProps { paperProps?: PaperProps; actions?: React.ReactNode; hideSearchInput?: boolean; + title?: React.ReactNode; paperKey?: string; currentItemUuid: string; - title?: string; } interface DataExplorerActionProps { @@ -93,8 +96,8 @@ export const DataExplorer = withStyles(styles)( paperKey, fetchMode, currentItemUuid, title } = this.props; return - {title ?
Content Address: {title}
: null} - {(!hideColumnSelector || !hideSearchInput) && + {title &&
{title}
} + {(!hideColumnSelector || !hideSearchInput) &&
{!hideSearchInput &&