diff options
author | Kristóf Marussy <kristof@marussy.com> | 2023-09-05 02:19:52 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2023-09-05 02:19:52 +0200 |
commit | aa8729361489842309668b2bddd528f5f2ac7275 (patch) | |
tree | 05f2093598f26e6d213093be8e7e7116c4ecc97f /subprojects/frontend | |
parent | refactor: disable all animations for large graphs (diff) | |
download | refinery-aa8729361489842309668b2bddd528f5f2ac7275.tar.gz refinery-aa8729361489842309668b2bddd528f5f2ac7275.tar.zst refinery-aa8729361489842309668b2bddd528f5f2ac7275.zip |
fix(frontend): GraphArea scroll
When the VisibilityDialog is not open, it should be unmounted to allow the
VisibilityPanel to become small and not cover the GraphArea below.
Diffstat (limited to 'subprojects/frontend')
-rw-r--r-- | subprojects/frontend/src/graph/VisibilityPanel.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/subprojects/frontend/src/graph/VisibilityPanel.tsx b/subprojects/frontend/src/graph/VisibilityPanel.tsx index c951dee2..20c4ffca 100644 --- a/subprojects/frontend/src/graph/VisibilityPanel.tsx +++ b/subprojects/frontend/src/graph/VisibilityPanel.tsx | |||
@@ -72,7 +72,13 @@ function VisibilityPanel({ | |||
72 | <VisibilityDialog graph={graph} close={close} dialog /> | 72 | <VisibilityDialog graph={graph} close={close} dialog /> |
73 | </Dialog> | 73 | </Dialog> |
74 | ) : ( | 74 | ) : ( |
75 | <Slide direction="right" in={showFilter} id={id}> | 75 | <Slide |
76 | direction="right" | ||
77 | in={showFilter} | ||
78 | id={id} | ||
79 | mountOnEnter | ||
80 | unmountOnExit | ||
81 | > | ||
76 | <Paper className="VisibilityPanel-drawer" elevation={4}> | 82 | <Paper className="VisibilityPanel-drawer" elevation={4}> |
77 | <VisibilityDialog graph={graph} close={close} /> | 83 | <VisibilityDialog graph={graph} close={close} /> |
78 | </Paper> | 84 | </Paper> |