From 82f7d2da728169af9f339deafd0ac98bb3a1809e Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Sun, 28 Dec 2025 13:02:01 +1000 Subject: [PATCH] fix: improve diagram node contrast and move tooltip to top --- apps/web/src/components/ArchitectureDiagram.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/web/src/components/ArchitectureDiagram.tsx b/apps/web/src/components/ArchitectureDiagram.tsx index 34273c2..ccdae59 100644 --- a/apps/web/src/components/ArchitectureDiagram.tsx +++ b/apps/web/src/components/ArchitectureDiagram.tsx @@ -393,7 +393,7 @@ export function ArchitectureDiagram(): React.ReactElement { // Determine colors based on type let strokeColor = 'var(--color-border)'; - let fillOpacity = 0.5; + let fillColor = 'var(--color-background)'; if (node.type === 'source') { strokeColor = 'var(--color-foreground)'; } else if (node.type === 'process') { @@ -404,7 +404,7 @@ export function ArchitectureDiagram(): React.ReactElement { strokeColor = 'var(--color-foreground-secondary)'; } else if (node.type === 'output') { strokeColor = 'var(--color-foreground)'; - fillOpacity = 1; + fillColor = 'var(--color-foreground)'; } // Main rectangle @@ -416,8 +416,7 @@ export function ArchitectureDiagram(): React.ReactElement { .attr('width', node.width) .attr('height', node.height) .attr('rx', node.type === 'output' ? 4 : 8) - .attr('fill', node.type === 'output' ? 'var(--color-foreground)' : 'var(--color-surface)') - .attr('fill-opacity', fillOpacity) + .attr('fill', fillColor) .attr('stroke', strokeColor) .attr('stroke-width', 1.5) .attr('filter', 'url(#arch-shadow)'); @@ -497,7 +496,7 @@ export function ArchitectureDiagram(): React.ReactElement { {/* Tooltip */} {hoveredInfo && ( -
+
{hoveredInfo.title} —{' '} {hoveredInfo.description}