Skip to content

Commit 377bc5c

Browse files
icecrasher321claude
andcommitted
improvement(canvas): close the running hatch's gaps
The hatch ran a 50/50 duty cycle — 6px of fill to 6px of air — which read as sparse. It now runs 8px to 3px. Both stops are measured along the 105° axis rather than horizontally, so each carries a `sin(105°)` factor; the note records that, and that closing the gap further is a matter of moving the first stop toward the second. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 0b5bc4f commit 377bc5c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/action-bar

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/action-bar/action-bar.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,15 @@ const ACTION_BUTTON_STYLES = [
5353
* as bars bunched in some places and spread in others. One element spanning the
5454
* row has one gradient, and therefore one phase.
5555
*
56+
* Stops are measured along the 105° axis, not horizontally, so both carry a
57+
* `sin(105°)` factor: an 8px bar on an 11px period reads as roughly 8.3px of
58+
* fill to 3.1px of gap. Widen the first stop toward the second to close the
59+
* gap further; equal stops would fill solid.
60+
*
5661
* `--surface-2` is the same fill the slots used; only where it is painted moved.
5762
*/
5863
const RUNNING_HATCH =
59-
'bg-[repeating-linear-gradient(105deg,var(--surface-2)_0_5.8px,transparent_5.8px_11.6px)]'
64+
'bg-[repeating-linear-gradient(105deg,var(--surface-2)_0_8px,transparent_8px_11px)]'
6065

6166
/** Left edge of the hatch: clears the run/stop button, which stays live mid-run. */
6267
const RUNNING_HATCH_INSET_SWELL = 'left-[42px]'

0 commit comments

Comments
 (0)