From 86128365adcd05ea630c26386fb5dcf52bf756f7 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Tue, 10 Mar 2026 22:03:51 +1300 Subject: [PATCH] perf: remove redundant CSS opacity transition from all nodes The `.react-flow__node:not(.switch-dimmed)` rule applied a transition to every node DOM element unnecessarily. The `.switch-dimmed` rule already handles the transition for dimming. Removing this makes undimming instant (snappier) and eliminates a transition declaration from every node. Co-Authored-By: Claude Opus 4.6 --- src/app/globals.css | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 4899a54b..203e5de1 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -55,10 +55,6 @@ body { transition: opacity 250ms ease-in-out; } -.react-flow__node:not(.switch-dimmed) { - transition: opacity 250ms ease-in-out; -} - /* Base handle styles */ .react-flow__handle { width: 14px;