Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #474 fix panel handle throws warning in console #475

Merged
merged 2 commits into from
Sep 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions app/graph/GraphView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ const GraphView = forwardRef(({ graph, runQuery, historyQuery, fetchCount }: {
<ResizablePanelGroup direction="horizontal" className={cn(maximize && "h-full p-10 bg-background fixed left-[50%] top-[50%] z-50 grid translate-x-[-50%] translate-y-[-50%]")}>
<ResizablePanel
className={cn("flex flex-col gap-8", !isCollapsed && "mr-8")}
defaultSize={100}
defaultSize={selectedElement ? 75 : 100}
>
{
!maximize &&
Expand Down Expand Up @@ -567,20 +567,17 @@ const GraphView = forwardRef(({ graph, runQuery, historyQuery, fetchCount }: {
(graph.Categories.length > 0 || graph.Labels.length > 0) &&
<>
<Labels className="left-2" categories={graph.Categories} onClick={onCategoryClick} label="Labels" graph={graph} />
<Labels className="right-2 text-end" categories={graph.Labels} onClick={onLabelClick} label="RelationshipTypes" graph={graph}/>
<Labels className="right-2 text-end" categories={graph.Labels} onClick={onLabelClick} label="RelationshipTypes" graph={graph} />
</>
}
</div>
</ResizablePanel>
{
!isCollapsed &&
<ResizableHandle className="w-3" />
}
<ResizableHandle className={!isCollapsed ? "w-3" : "w-0"} />
<ResizablePanel
className="rounded-lg"
collapsible
ref={dataPanel}
defaultSize={25}
defaultSize={selectedElement ? 25 : 0}
minSize={25}
maxSize={50}
onCollapse={() => setIsCollapsed(true)}
Expand Down
Loading