Skip to content

Commit

Permalink
fix: Change styles to use dialogClassName; reduce max size
Browse files Browse the repository at this point in the history
  • Loading branch information
hcat-pge committed May 1, 2020
1 parent 70aee49 commit 5b593e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion front-end/src/components/CustomNode/GraphView.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default class GraphView extends React.Component {
height={displayHeight < 600 ? displayHeight + 5 : 600}
rowCount={this.state.rows.length}
rowHeight={index => 20}
width={displayWidth < 1000 ? displayWidth : 1000}
width={displayWidth < 800 ? displayWidth : 800}
>
{this.Cell}
</Grid>
Expand All @@ -142,6 +142,7 @@ export default class GraphView extends React.Component {
show={this.props.show}
onHide={this.props.toggleShow}
centered
dialogClassName={"GraphView"}
onWheel={e => e.stopPropagation()}
>
<Modal.Header closeButton>
Expand Down
4 changes: 2 additions & 2 deletions front-end/src/styles/GraphView.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
background-color: #f8f8f0;
}

.modal-dialog, .GraphView {
max-width: 70%;
.GraphView {
max-width: 825px;
}

0 comments on commit 5b593e4

Please sign in to comment.