Skip to content

Commit 3773781

Browse files
authored
feat: add scrolling behavior (#6)
* feat: add scrolling behavior to the navigation tree * bump: bump version to handle scroll
1 parent d574671 commit 3773781

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/react-navigation-visualizer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bam.tech/react-navigation-visualizer-dev-plugin",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "Visualization Tool based on Expo DevTools Plugin for React Navigation",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

packages/react-navigation-visualizer/webui/src/NavigationTree.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export function NavigationTree({ logs }: Props) {
1818
const hasPreviousItem = !!previousNavigationItem && previousNavigationItemState;
1919

2020
return (
21-
<Layout style={{ height: '100%' }}>
22-
<Layout.Content style={{ height: '100%' }}>
21+
<Layout>
22+
<Layout.Content style={{ height: '100vh', overflow: 'auto', paddingBottom: '80px' }}>
2323
<Container>
2424
<HalfContainer>
2525
<Typography>Previous state</Typography>
@@ -50,7 +50,6 @@ const Container = styled.div({
5050
display: 'flex',
5151
overflow: 'auto',
5252
flexDirection: 'row',
53-
height: 'calc(100vh - 80px)',
5453
flex: 1,
5554
});
5655

0 commit comments

Comments
 (0)