aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/graph
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-05 02:19:52 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-05 02:19:52 +0200
commitaa8729361489842309668b2bddd528f5f2ac7275 (patch)
tree05f2093598f26e6d213093be8e7e7116c4ecc97f /subprojects/frontend/src/graph
parentrefactor: disable all animations for large graphs (diff)
downloadrefinery-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/src/graph')
-rw-r--r--subprojects/frontend/src/graph/VisibilityPanel.tsx8
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>