Skip to content
Snippets Groups Projects
Commit 09c570ec authored by esikkala's avatar esikkala
Browse files

Fix table subview layout

parent e73844db
No related branches found
No related tags found
No related merge requests found
......@@ -13,10 +13,15 @@ import ResultTableHead from './ResultTableHead';
import { has, orderBy } from 'lodash';
const styles = (theme) => ({
table: {
tableContainer: {
marginTop: 72,
overflow: 'auto',
width: '100% - 8px'
},
table: {
//marginTop: 72,
minWidth: 700,
overflowX: 'auto',
//overflowX: 'auto',
backgroundColor: theme.palette.background.paper
},
paginationRow: {
......@@ -215,50 +220,52 @@ class ResultTable extends React.Component {
);
} else {
return (
<Table className={classes.table}>
<ResultTableHead
fetchFacet={this.props.fetchFacet}
fetchManuscripts={this.props.fetchManuscripts}
facet={this.props.facet}
results={this.props.results}
page={this.props.page}
/>
<TableBody>
{rows.map(row => {
return (
<TableRow key={row.id}>
<TableCell component="th" scope="row" >
{this.idRenderer(row)}
</TableCell>
<TableCell className={classes.withFilter} >
{this.stringListRenderer(row.prefLabel)}
</TableCell>
<TableCell className={classes.withFilter}>
{this.objectListRenderer(row.author, true)}
</TableCell>
<TableCell className={classes.withFilter}>
{this.objectListRenderer(row.creationPlace, true)}
</TableCell>
<TableCell className={classes.withFilter}>
{this.objectListRenderer(row.timespan)}
</TableCell>
<TableCell className={classes.withFilter}>
{this.stringListRenderer(row.language)}
</TableCell>
{/*<TableCell className={classes.withFilter}>
<div className={classes.tableContainer}>
<Table className={classes.table}>
<ResultTableHead
fetchFacet={this.props.fetchFacet}
fetchManuscripts={this.props.fetchManuscripts}
facet={this.props.facet}
results={this.props.results}
page={this.props.page}
/>
<TableBody>
{rows.map(row => {
return (
<TableRow key={row.id}>
<TableCell component="th" scope="row" >
{this.idRenderer(row)}
</TableCell>
<TableCell className={classes.withFilter} >
{this.stringListRenderer(row.prefLabel)}
</TableCell>
<TableCell className={classes.withFilter}>
{this.objectListRenderer(row.author, true)}
</TableCell>
<TableCell className={classes.withFilter}>
{this.objectListRenderer(row.creationPlace, true)}
</TableCell>
<TableCell className={classes.withFilter}>
{this.objectListRenderer(row.timespan)}
</TableCell>
<TableCell className={classes.withFilter}>
{this.stringListRenderer(row.language)}
</TableCell>
{/*<TableCell className={classes.withFilter}>
{this.stringListRenderer(row.material)}
</TableCell>*/}
<TableCell className={classes.withFilter}>
{this.transactionRenderer(row.acquisition)}
</TableCell>
<TableCell className={classes.withFilter}>
{this.ownerRenderer(row.owner)}
</TableCell>
</TableRow>
);
})}
</TableBody>
</Table>
<TableCell className={classes.withFilter}>
{this.transactionRenderer(row.acquisition)}
</TableCell>
<TableCell className={classes.withFilter}>
{this.ownerRenderer(row.owner)}
</TableCell>
</TableRow>
);
})}
</TableBody>
</Table>
</div>
);
}
}
......
......@@ -41,7 +41,6 @@ const styles = theme => ({
//minHeight: 700
},
mainContainer: {
overflow: 'auto',
display: 'flex',
width: '100%',
marginTop: 64,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment