Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion apps/web/components/chat/model-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function ChatModelSelector({
return (
<div
ref={containerRef}
className="relative flex min-w-0 shrink items-center gap-2"
className="relative z-10 flex min-w-0 shrink items-center gap-2"
>
{trigger}

Expand Down
2 changes: 1 addition & 1 deletion packages/memory-graph/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@supermemory/memory-graph",
"version": "0.2.1",
"version": "0.2.3",
"description": "Interactive graph visualization component for Supermemory - visualize and explore your memory connections",
"type": "module",
"main": "./src/index.tsx",
Expand Down
4 changes: 0 additions & 4 deletions packages/memory-graph/src/components/legend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,7 @@ export const Legend = memo(function Legend({
const connectionCount = edges.length

const outerStyle: React.CSSProperties = {
position: "absolute",
zIndex: 20,
overflow: "hidden",
bottom: 16,
left: 16,
width: 214,
}

Expand Down
52 changes: 27 additions & 25 deletions packages/memory-graph/src/components/memory-graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -642,11 +642,15 @@ export function MemoryGraph({
justifyContent: "center",
}

const navControlsStyle: React.CSSProperties = {
const bottomLeftStackStyle: React.CSSProperties = {
position: "absolute",
bottom: isCompactViewport ? 148 : 72,
bottom: containerSize.width > 0 && containerSize.width < 768 ? 132 : 16,
left: 16,
zIndex: 15,
zIndex: 20,
display: "flex",
flexDirection: "column",
alignItems: "flex-start",
gap: 8,
}

return (
Expand Down Expand Up @@ -703,28 +707,26 @@ export function MemoryGraph({
/>
)}

<div>
{containerSize.width > 0 && (
<div style={navControlsStyle}>
<NavigationControls
nodes={nodes}
compact={isCompactViewport}
onAutoFit={handleAutoFit}
onCenter={handleCenter}
onZoomIn={handleZoomIn}
onZoomOut={handleZoomOut}
zoomLevel={zoomDisplay}
colors={colors}
/>
</div>
)}
<Legend
colors={colors}
edges={edges}
isLoading={isLoading}
nodes={nodes}
/>
</div>
{containerSize.width > 0 && (
<div style={bottomLeftStackStyle}>
<NavigationControls
nodes={nodes}
compact={isCompactViewport}
onAutoFit={handleAutoFit}
onCenter={handleCenter}
onZoomIn={handleZoomIn}
onZoomOut={handleZoomOut}
zoomLevel={zoomDisplay}
colors={colors}
/>
<Legend
colors={colors}
edges={edges}
isLoading={isLoading}
nodes={nodes}
/>
</div>
)}
</div>
</div>
)
Expand Down
Loading