Skip to content

Commit ac8a357

Browse files
andresdjassoclaude
andcommitted
style(workflow): stack-mode resize lives in the gap between modules
In floating mode the drag zone now owns the visible 8px gap between the chat module and the front card — hover there shows the grab pill — instead of hugging the chat panel's right edge as in flush mode. The separator rides at z-40 so the stage's z-30 backdrop and cards can't swallow the hover or the drag. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent a06ebec commit ac8a357

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/docked-chat/workflow-with-chat.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,14 +328,20 @@ export function WorkflowWithChat() {
328328
onStageResource={stageResource}
329329
/>
330330
</div>
331-
{/* Zero-width flex child whose absolute child straddles the border.
332-
A small grab pill fades in on hover so the affordance is
333-
discoverable without adding a permanent line. */}
334-
<div className='relative z-20 w-0 flex-none'>
331+
{/* Zero-width flex child whose absolute child carries the drag.
332+
Flush mode: it straddles the border. Stack mode: it owns the
333+
visible gap between the chat module and the front card (and
334+
sits above the stage's z-30 layers). A small grab pill fades in
335+
on hover so the affordance is discoverable without adding a
336+
permanent line. */}
337+
<div className='relative z-40 w-0 flex-none'>
335338
<Tooltip.Root>
336339
<Tooltip.Trigger asChild>
337340
<div
338-
className='group absolute inset-y-0 left-[-4px] flex w-[8px] cursor-ew-resize items-center justify-center'
341+
className={cn(
342+
'group absolute inset-y-0 flex cursor-ew-resize items-center justify-center',
343+
isStackMode ? 'left-0 w-[8px]' : 'left-[-4px] w-[8px]'
344+
)}
339345
role='separator'
340346
aria-orientation='vertical'
341347
aria-label='Resize chat pane'

0 commit comments

Comments
 (0)