Skip to content

Commit

Permalink
[sc] adjust opacity effect
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Jun 4, 2024
1 parent 298adae commit 23df3e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
4 changes: 2 additions & 2 deletions apps/star-chart/web/src/components/project/TaskNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
>
Expand Down

0 comments on commit 23df3e4

Please sign in to comment.