Skip to content

Commit 4b4a020

Browse files
committed
tree component is scrollable
1 parent 485c049 commit 4b4a020

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/app/components/Tree.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ const Tree = (props) => {
1919
data={snapshot}
2020
theme={{ tree: () => ({ className: 'json-tree' }) }}
2121
getItemString={getItemString}
22+
shouldExpandNode={() => true}
23+
// labelRenderer={raw => <strong>{raw}</strong>}
24+
// valueRenderer={raw => <em>{raw}</em>}
2225
/>
2326
)}
2427
</React.Fragment>
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
.json-tree {
2-
position: absolute;
32
margin: 10px;
43
padding: 0;
54
background-color: $brand-color;
65
list-style: none;
7-
// overflow: hidden;
86
}

src/app/styles/layout/_stateContainer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.state-container {
22
font-size: 12px;
3-
overflow: auto;
3+
overflow: scroll;
44
background-color: $brand-color;
55
}
66

0 commit comments

Comments
 (0)