Browse Source

design: stack back button above title in workflow browser header

Back button sits on its own row so the title and directory path are
flush-left instead of indented beside the arrow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 4 months ago
parent
commit
60b5a35b14
  1. 28
      src/components/quickstart/WorkflowBrowserView.tsx

28
src/components/quickstart/WorkflowBrowserView.tsx

@ -209,24 +209,26 @@ export function WorkflowBrowserView({
return ( return (
<div className="flex flex-col h-full max-h-[70vh]"> <div className="flex flex-col h-full max-h-[70vh]">
{/* Header */} {/* Header */}
<div className="px-6 py-4 border-b border-neutral-700/50 flex-shrink-0"> <div className="px-6 pt-4 pb-3 border-b border-neutral-700/50 flex-shrink-0">
<div className="flex items-center gap-3"> {onBack && (
{onBack && <QuickstartBackButton onClick={onBack} />} <div className="mb-2">
<div className="flex-1 min-w-0"> <QuickstartBackButton onClick={onBack} />
<h2 className="text-lg font-medium text-neutral-200">
Your Workflows
</h2>
<p
className="text-xs text-neutral-500 truncate"
title={defaultDir}
>
{defaultDir}
</p>
</div> </div>
)}
<div className="flex items-baseline justify-between gap-3">
<h2 className="text-lg font-medium text-neutral-200">
Your Workflows
</h2>
<span className="text-xs text-neutral-600 tabular-nums flex-shrink-0"> <span className="text-xs text-neutral-600 tabular-nums flex-shrink-0">
{workflows.length} project{workflows.length !== 1 ? "s" : ""} {workflows.length} project{workflows.length !== 1 ? "s" : ""}
</span> </span>
</div> </div>
<p
className="text-xs text-neutral-500 truncate mt-0.5"
title={defaultDir}
>
{defaultDir}
</p>
</div> </div>
{/* Workflow list */} {/* Workflow list */}

Loading…
Cancel
Save