fix: style run
This commit is contained in:
@@ -170,6 +170,7 @@ function AgentNodeComponent({ id, data, width, height, selected }: Props) {
|
|||||||
<BaseNode
|
<BaseNode
|
||||||
className="min-w-[360px] min-h-[320px]"
|
className="min-w-[360px] min-h-[320px]"
|
||||||
dimensions={dimensions}
|
dimensions={dimensions}
|
||||||
|
resizable
|
||||||
nodeId={id}
|
nodeId={id}
|
||||||
selected={selected}
|
selected={selected}
|
||||||
handles={
|
handles={
|
||||||
@@ -182,6 +183,23 @@ function AgentNodeComponent({ id, data, width, height, selected }: Props) {
|
|||||||
<BaseNodeHeaderRow
|
<BaseNodeHeaderRow
|
||||||
icon={<Bot className="size-4" />}
|
icon={<Bot className="size-4" />}
|
||||||
title={<NodeHeaderTitle nodeId={id} displayTitle={id} />}
|
title={<NodeHeaderTitle nodeId={id} displayTitle={id} />}
|
||||||
|
right={
|
||||||
|
<Button
|
||||||
|
type="button"
|
||||||
|
size="sm"
|
||||||
|
variant="outline"
|
||||||
|
className="shrink-0 h-7 nodrag nopan"
|
||||||
|
onClick={runAgent}
|
||||||
|
disabled={running || loading}
|
||||||
|
>
|
||||||
|
{running || loading ? (
|
||||||
|
<Loader2 className="size-3.5 animate-spin" />
|
||||||
|
) : (
|
||||||
|
<Play className="size-3.5" />
|
||||||
|
)}
|
||||||
|
<span className="ml-1.5">Run</span>
|
||||||
|
</Button>
|
||||||
|
}
|
||||||
onHeaderDoubleClick={supportsFullscreen && setFullscreenNodeId ? () => setFullscreenNodeId(id) : undefined}
|
onHeaderDoubleClick={supportsFullscreen && setFullscreenNodeId ? () => setFullscreenNodeId(id) : undefined}
|
||||||
/>
|
/>
|
||||||
<BaseNodeContent>
|
<BaseNodeContent>
|
||||||
@@ -212,20 +230,6 @@ function AgentNodeComponent({ id, data, width, height, selected }: Props) {
|
|||||||
</ul>
|
</ul>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<Button
|
|
||||||
type="button"
|
|
||||||
size="sm"
|
|
||||||
className="w-fit"
|
|
||||||
onClick={runAgent}
|
|
||||||
disabled={running || loading}
|
|
||||||
>
|
|
||||||
{running || loading ? (
|
|
||||||
<Loader2 className="size-3.5 mr-1.5 animate-spin" />
|
|
||||||
) : (
|
|
||||||
<Play className="size-3.5 mr-1.5" />
|
|
||||||
)}
|
|
||||||
Run
|
|
||||||
</Button>
|
|
||||||
{error && (
|
{error && (
|
||||||
<p className="text-xs text-destructive">{error}</p>
|
<p className="text-xs text-destructive">{error}</p>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user