Skip to content

Commit ef31105

Browse files
andresdjassoclaude
andcommitted
style(workflow): top fade between the canvas and the chrome row
Nodes panning under the toggle/switcher/title dissolved into collisions with the chrome text. A 72px gradient strip (solid through the 44px chrome zone, faded out below) sits between the canvas and the chrome — gradient only, no backdrop blur, so canvas pan/zoom repaints stay cheap. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent e5e8295 commit ef31105

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4233,6 +4233,18 @@ const WorkflowContent = React.memo(
42334233

42344234
{!embedded && <DiffControls />}
42354235

4236+
{/* Top fade between the canvas and the chrome row: nodes panning
4237+
under the toggle/switcher/title dissolve into the page bg
4238+
instead of colliding with them. Solid through the 44px chrome
4239+
zone, faded out by 72px. Gradient only — a backdrop blur here
4240+
would tax every canvas pan/zoom repaint. */}
4241+
{!embedded && (
4242+
<div
4243+
aria-hidden='true'
4244+
className='pointer-events-none absolute inset-x-0 top-0 z-[9] h-[72px] bg-gradient-to-b from-40% from-[var(--bg)] to-transparent'
4245+
/>
4246+
)}
4247+
42364248
{/* Workspace chrome over the canvas: sidebar toggle + chat switcher
42374249
+ workflow title at the top-left, matching the title-bar rhythm
42384250
on other pages. The controls hide while a chat is docked (the

0 commit comments

Comments
 (0)