From 23df3e48e8dbc4b8175112a9f2c83a7bb4f683e8 Mon Sep 17 00:00:00 2001 From: Grant Forrest Date: Tue, 4 Jun 2024 16:25:21 -0400 Subject: [PATCH] [sc] adjust opacity effect --- apps/star-chart/web/src/components/project/ConnectionWire.tsx | 2 +- apps/star-chart/web/src/components/project/TaskNode.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/star-chart/web/src/components/project/ConnectionWire.tsx b/apps/star-chart/web/src/components/project/ConnectionWire.tsx index 24c8bf7c..1c6daeee 100644 --- a/apps/star-chart/web/src/components/project/ConnectionWire.tsx +++ b/apps/star-chart/web/src/components/project/ConnectionWire.tsx @@ -65,7 +65,7 @@ export function ConnectionWire({ connection }: ConnectionWireProps) { !selected && pendingSelect && 'stroke-primary', sourceTaskIsComplete && targetTaskIsComplete && - 'opacity-[calc(var(--zoom,1)*var(--zoom,1)*0.35)]', + 'opacity-[calc(var(--zoom,1)*var(--zoom,1)*0.5)]', )} hoverClassName="stroke-primary-wash" sourcePosition={sourcePosition} diff --git a/apps/star-chart/web/src/components/project/TaskNode.tsx b/apps/star-chart/web/src/components/project/TaskNode.tsx index 207af9b8..4eda76ba 100644 --- a/apps/star-chart/web/src/components/project/TaskNode.tsx +++ b/apps/star-chart/web/src/components/project/TaskNode.tsx @@ -63,8 +63,8 @@ export function TaskNode({ task }: TaskNodeProps) { !selected && pendingSelect && 'layer-variants:border-primary-wash', !!completedAt && (downstreamUncompleted - ? 'opacity-[calc(var(--zoom,1)*var(--zoom,1)*0.75)]' - : 'opacity-[calc(var(--zoom,1)*var(--zoom,1)*0.25)]'), + ? 'opacity-[calc(var(--zoom,1)*var(--zoom,1))]' + : 'opacity-[calc(var(--zoom,1)*var(--zoom,1)*0.5)]'), )} canvasObject={canvasObject} >