Commit 177dfad
committed
fix(canvas): keep click-marked framing when auto-focus is off, recut tooltips
Gating the whole click branch on the setting also skipped the
userFocusedWorkflowIdRef write, which is what stops <ReactFlow onInit>
from running fitView over the user's framing. That would have blown away
the framing of exactly the users who turned auto-focus off to keep it.
Mark the workflow as user-framed on any plain node click and gate only
the camera move.
Crop the auto-focus preview to the recording's viewport center so the
blocks are legible at the 240px width Tooltip.Preview renders at, and
trim the 2.45s of empty lead off the error-notification preview.1 parent 489d55b commit 177dfad
4 files changed
Lines changed: 11 additions & 4 deletions
File tree
- apps/sim
- app/workspace/[workspaceId]/w/[workflowId]
- public/tooltips
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4327 | 4327 | | |
4328 | 4328 | | |
4329 | 4329 | | |
4330 | | - | |
4331 | | - | |
| 4330 | + | |
| 4331 | + | |
4332 | 4332 | | |
4333 | 4333 | | |
4334 | 4334 | | |
4335 | 4335 | | |
4336 | | - | |
4337 | 4336 | | |
4338 | 4337 | | |
4339 | 4338 | | |
4340 | 4339 | | |
| 4340 | + | |
| 4341 | + | |
| 4342 | + | |
| 4343 | + | |
| 4344 | + | |
| 4345 | + | |
4341 | 4346 | | |
4342 | | - | |
| 4347 | + | |
| 4348 | + | |
| 4349 | + | |
4343 | 4350 | | |
4344 | 4351 | | |
4345 | 4352 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments