vn6295337 Claude Opus 4.5 commited on
Commit
5072ead
·
1 Parent(s): b792fa1

Increase MCP server spacing in ProcessFlow visualization

Browse files

- Increase MCP_GAP from 38 to 48 to prevent label overlap
- Increase SVG_WIDTH to 530 to accommodate wider MCP group

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

frontend/src/components/ProcessFlow.tsx CHANGED
@@ -60,7 +60,7 @@ const ROW3_Y = ROW2_Y + ROW_GAP
60
  const SVG_HEIGHT = 218 // Exact content height - scales to fill container
61
  const NODE_COUNT = 7
62
  const FLOW_WIDTH = GAP * (NODE_COUNT - 1) + NODE_SIZE
63
- const SVG_WIDTH = FLOW_WIDTH // Match content width exactly
64
  const FLOW_START_X = NODE_SIZE / 2 // Left-aligned with half-node margin
65
 
66
  const NODES = {
@@ -76,7 +76,7 @@ const NODES = {
76
  }
77
 
78
  const MCP_START_X = NODES.researcher.x + NODE_SIZE / 2 + 40
79
- const MCP_GAP = 38
80
  const MCP_SERVERS = [
81
  { id: 'fundamentals', label: 'Fundamentals', icon: DollarSign, x: MCP_START_X },
82
  { id: 'valuation', label: 'Valuation', icon: TrendingUp, x: MCP_START_X + MCP_GAP },
 
60
  const SVG_HEIGHT = 218 // Exact content height - scales to fill container
61
  const NODE_COUNT = 7
62
  const FLOW_WIDTH = GAP * (NODE_COUNT - 1) + NODE_SIZE
63
+ const SVG_WIDTH = 530 // Wide enough for MCP group with increased spacing
64
  const FLOW_START_X = NODE_SIZE / 2 // Left-aligned with half-node margin
65
 
66
  const NODES = {
 
76
  }
77
 
78
  const MCP_START_X = NODES.researcher.x + NODE_SIZE / 2 + 40
79
+ const MCP_GAP = 48
80
  const MCP_SERVERS = [
81
  { id: 'fundamentals', label: 'Fundamentals', icon: DollarSign, x: MCP_START_X },
82
  { id: 'valuation', label: 'Valuation', icon: TrendingUp, x: MCP_START_X + MCP_GAP },