Skip to content

Commit 8cd97b8

Browse files
committed
Add explicit topRightIsland
the default doesnt show the icons correctly. now the icons are shown but other parts of the styling are still off
1 parent 736b511 commit 8cd97b8

3 files changed

Lines changed: 2991 additions & 2981 deletions

File tree

js-applet/src/graph-widget.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,22 @@ function GraphWidget() {
123123
sidePanelWidth,
124124
children: <GraphVisualization.SingleSelectionSidePanelContents/>,
125125
}}
126-
bottomRightIsland={
126+
topRightIsland={
127127
<IconButtonArray size="medium">
128+
<GraphVisualization.DownloadButton/>
129+
<GraphVisualization.ToggleSidePanelButton/>
130+
</IconButtonArray>
131+
}
132+
bottomRightIsland={
133+
<IconButtonArray size="medium" orientation="vertical">
128134
<GraphVisualization.GestureSelectButton menuPlacement="top-end-bottom-end"/>
129-
<Divider orientation="horizontal"/>
135+
<Divider orientation="vertical"/>
130136
<GraphVisualization.ZoomInButton/>
131137
<GraphVisualization.ZoomOutButton/>
132138
<GraphVisualization.ZoomToFitButton/>
133139
{showLayoutButton && (
134140
<>
135-
<Divider orientation="horizontal"/>
141+
<Divider orientation="vertical"/>
136142
<GraphVisualization.LayoutSelectButton menuPlacement="top-end-bottom-end"/>
137143
</>
138144
)}

0 commit comments

Comments
 (0)