Skip to content

Commit

Permalink
Make variable explorer full-height
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitakit committed Mar 9, 2018
1 parent 1afde8a commit c8c39e0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/variable-explorer.js
Expand Up @@ -44,7 +44,7 @@ export default class VariableExplorer extends React.Component {
class VariableExplorerRenderer extends React.Component {
render() {
return (
<div>
<div class="hpy-variable-explorer">
<ReactTable
data={this.props.data.tableData}
columns={[
Expand All @@ -68,9 +68,10 @@ class VariableExplorerRenderer extends React.Component {
accessor: "value",
},
]}
defaultPageSize={10}
defaultPageSize={100}
showPageSizeOptions={false}
className="-striped -highlight"
minRows={20}
className="-striped -highlight hpy-variable-table"
noDataText="Variable explorer will initialize once you run a chunk of code. This experimental feature was tested with Python 3 only."
/>
</div>
Expand Down
8 changes: 8 additions & 0 deletions styles/hydrogen-python.less
@@ -1 +1,9 @@
@import (less) "../node_modules/react-table/react-table.css";

div.hpy-variable-explorer {
height: 100%;
}

.hpy-variable-table {
height: 100%;
}

0 comments on commit c8c39e0

Please sign in to comment.