Skip to content

Commit a07dfa7

Browse files
committed
fix(dependency-graph): ensure proper container height for graph rendering
1 parent 05abdb9 commit a07dfa7

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

frontend/src/components/DependencyGraph/GraphNode.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { memo } from 'react'
2-
import { Handle, Position, NodeProps } from 'reactflow'
2+
import { Handle, Position } from 'reactflow'
3+
import type { NodeProps } from 'reactflow'
34
import { FileCode2, FileJson, FileText, TestTube2, Settings, File } from 'lucide-react'
45
import { cn } from '@/lib/utils'
56
import type { RiskLevel } from './hooks/useImpactAnalysis'

frontend/src/components/DependencyGraph/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ function DependencyGraphInner({ repoId, apiUrl, apiKey }: DependencyGraphProps)
286286
/>
287287

288288
{/* Graph + Panel */}
289-
<div className="flex-1 flex overflow-hidden">
289+
<div className="flex-1 flex overflow-hidden min-h-[500px]">
290290
{/* Graph Canvas */}
291-
<div className="flex-1 relative">
291+
<div className="flex-1 relative h-full">
292292
<ReactFlow
293293
nodes={nodes}
294294
edges={edges}

frontend/src/components/dashboard/DashboardHome.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export function DashboardHome() {
286286
</div>
287287

288288
{/* Tab Content */}
289-
<div className="bg-card border border-border rounded-xl overflow-hidden">
289+
<div className="bg-card border border-border rounded-xl overflow-hidden min-h-[700px]">
290290
{activeTab === 'overview' && (
291291
<RepoOverview
292292
repo={selectedRepoData}

0 commit comments

Comments
 (0)