Skip to content

Commit 3479f3d

Browse files
authored
Fixed broken auto scroll of properties pane (#1836)
Also made sure that if there are many labels on one node, that it is scrollable instead of just rendered out of sight.
1 parent 97027e5 commit 3479f3d

File tree

2 files changed

+12
-0
lines changed
  • src
    • browser/modules/Stream/CypherFrame/VisualizationView/PropertiesPanelContent
    • neo4j-arc/graph-visualization/GraphVisualizer/DefaultPanelContent

2 files changed

+12
-0
lines changed

src/browser/modules/Stream/CypherFrame/VisualizationView/PropertiesPanelContent/styled.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,21 @@ export const StyledNodeInspectorContainer = styled.div<{
140140

141141
export const PaneWrapper = styled.div`
142142
padding: 0 14px;
143+
height: 100%;
144+
display: flex;
145+
flex-direction: column;
143146
`
144147

145148
export const PaneHeader = styled.div`
146149
font-size: 16px;
147150
margin-top: 10px;
148151
flex: 0 0 auto;
152+
overflow: auto;
153+
max-height: 50%;
149154
`
150155

151156
export const PaneBody = styled.div`
157+
height: 100%;
152158
overflow: auto;
153159
margin: 14px 0;
154160
flex: 0 1 auto;

src/neo4j-arc/graph-visualization/GraphVisualizer/DefaultPanelContent/styled.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,21 @@ export const NonClickableRelTypeChip = styled(StyledRelationshipChip)`
4646

4747
export const PaneWrapper = styled.div`
4848
padding: 0 14px;
49+
height: 100%;
50+
display: flex;
51+
flex-direction: column;
4952
`
5053

5154
export const PaneHeader = styled.div`
5255
font-size: 16px;
5356
margin-top: 10px;
5457
flex: 0 0 auto;
58+
overflow: auto;
59+
max-height: 50%;
5560
`
5661

5762
export const PaneBody = styled.div`
63+
height: 100%;
5864
overflow: auto;
5965
margin: 14px 0;
6066
flex: 0 1 auto;

0 commit comments

Comments
 (0)