refactor: icon and download button use button component

This commit is contained in:
2026-09-02 18:37:43 +05:00
parent 3d0f8ebb10
commit 8a6f87938d
16 changed files with 85 additions and 167 deletions
@@ -67,18 +67,21 @@
{#if needsSource && !sourceImg}
<Dropzone onfile={onFile} />
{:else if needsSource && sourceImg}
<Button variant="ghost" onclick={onClearSource}>Change image</Button>
<Button variant="outline" onclick={onClearSource} label="Change image" />
{/if}
<PreviewStack>
{#if needsSource && sourceImg}
<PreviewTile label="SOURCE">
<PreviewTile label="SOURCE" caption="">
<CheckerCanvas size="sm">
<img class="tile-img" src={sourceUrl} alt="source" />
</CheckerCanvas>
</PreviewTile>
{/if}
{#each stepOutputs as out, i (out.toolId + i)}
<PreviewTile label={`STEP ${String(i + 1).padStart(2, "0")}`}>
<PreviewTile
label={`STEP ${String(i + 1).padStart(2, "0")}`}
caption=""
>
<CheckerCanvas size="sm">
<img class="tile-img" src={out.url} alt={out.title} />
</CheckerCanvas>
@@ -41,7 +41,7 @@
<Panel>
<PanelHeading title="Pipeline" eyebrow="STEPS">
{#snippet actions()}
<Badge tone="accent">AUTO</Badge>
<Badge tone="accent" label="AUTO" />
{/snippet}
</PanelHeading>
<div class="pipeline-body">
@@ -78,7 +78,7 @@
options={chainOptions}
onchange={(v) => onSetAddId(v)}
/>
<Button variant="ghost" onclick={onAddStep}>Add step</Button>
<Button variant="outline" onclick={onAddStep} label="Add step" />
</div>
</SettingsFooter>
</Panel>