Commit 0d58f203 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Fixed unnecessary divider line in RepoEntryView, moved Structure.js actions to...

Fixed unnecessary divider line in RepoEntryView, moved Structure.js actions to the top of the Dialog in fullscreen mode.
parent c14a21f2
Pipeline #80853 passed with stages
in 49 minutes and 22 seconds
......@@ -103,10 +103,6 @@ class RepoEntryView extends React.Component {
title={entryHeader}
action={<ApiDialogButton title="Repository JSON" data={calcData} />}
/>
{/* <CardContent classes={{root: classes.cardContent}}>
<Structure classes={{root: classes.structureViewer}} calcId={this.props.calcId}></Structure>
</CardContent> */}
<Divider />
<CardContent classes={{root: classes.cardContent}}>
{domain && <domain.EntryOverview data={calcData} loading={loading} />}
</CardContent>
......
......@@ -9,8 +9,8 @@ import {
Button,
IconButton,
Tooltip,
Typography,
Dialog,
DialogTitle,
DialogContent,
DialogActions,
FormControlLabel
......@@ -250,8 +250,9 @@ export default function Structure(props) {
viewer.current.render()
}, [])
let content = <Box className={classes.container}>
const content = <Box className={classes.container}>
<div className={classes.header}>
{fullscreen && <Typography variant="h6">Structure</Typography>}
<div className={classes.spacer}></div>
<Tooltip title="Reset view">
<IconButton className={classes.iconButton} onClick={handleReset} disabled={error}>
......@@ -332,7 +333,6 @@ export default function Structure(props) {
{fullscreen ? '' : content}
</Box>
<Dialog maxWidth="lg" fullWidth open={fullscreen}>
<DialogTitle>{'Structure'}</DialogTitle>
<DialogContent>
<Box className={classes.root}>
<Box className={classes.rootInner}>
......@@ -352,7 +352,6 @@ export default function Structure(props) {
Structure.propTypes = {
viewer: PropTypes.object, // Optional shared viewer instance.
id: PropTypes.string, // Id for the visualized structure.
system: PropTypes.object, // The system to display as section_system
options: PropTypes.object, // Viewer options
captureName: PropTypes.string, // Name of the file that the user can download
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment