fix(agent): match studio controls, thumbnail ratio and sample digits
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -551,7 +551,7 @@ let {
|
||||
onpaste={onPaste}
|
||||
></div>
|
||||
<div class="actions">
|
||||
{#if studio}<button type="button" class="attach workflow-shortcut" disabled={busy} onclick={()=>{editorEl?.focus();mentionQuery='';mentionIndex=0;mentionAnchor=caretAnchor();mentionLocked=false;mentionOpen=true;}}>@ 工作流</button>{/if}
|
||||
{#if studio}<button type="button" class="b4-chip workflow-shortcut" disabled={busy} onclick={()=>{editorEl?.focus();mentionQuery='';mentionIndex=0;mentionAnchor=caretAnchor();mentionLocked=false;mentionOpen=true;}}>@ 工作流</button>{/if}
|
||||
<input
|
||||
bind:this={fileInput}
|
||||
type="file"
|
||||
@@ -562,29 +562,31 @@ let {
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
class="attach"
|
||||
class={studio ? "b4-chip" : "attach"}
|
||||
title={t('agentComposer.attach')}
|
||||
disabled={busy}
|
||||
onclick={() => fileInput?.click()}
|
||||
>
|
||||
<Icon name="paperclip" size={16} />{#if studio}<span>参考材料</span>{/if}
|
||||
{#if studio}+ 参考材料{:else}<Icon name="paperclip" size={16} />{/if}
|
||||
</button>
|
||||
{#if studio}<span class="b4-grow"></span>{/if}
|
||||
{#if running}
|
||||
<button type="button" class="send stop" onclick={onCancel} title={t('agentComposer.stopTitle')}>
|
||||
<Icon name="stop" size={14} />
|
||||
<button type="button" class={studio ? "a-btn sm ghost stop" : "send stop"} onclick={onCancel} title={t('agentComposer.stopTitle')}>
|
||||
{#if !studio}<Icon name="stop" size={14} />{/if}
|
||||
{t('common.stop')}
|
||||
</button>
|
||||
{/if}
|
||||
<button
|
||||
type="button"
|
||||
class="send"
|
||||
class={studio ? "a-btn sm primary" : "send"}
|
||||
class:steer={running}
|
||||
onclick={submit}
|
||||
disabled={!sendable}
|
||||
title={running ? t('agentComposer.steerTitle') : t('agentComposer.sendTitle')}
|
||||
>
|
||||
{#if studio}<Icon name="agent-send" size={14} />{/if}
|
||||
{running ? t('agentComposer.steer') : t('common.send')}
|
||||
<Icon name="chevron-right" size={14} />
|
||||
{#if !studio}<Icon name="chevron-right" size={14} />{/if}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -747,7 +749,7 @@ let {
|
||||
display: flex;
|
||||
justify-content:var(--composer-actions-justify,normal);
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
gap: var(--composer-actions-gap, 6px);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.attach {
|
||||
|
||||
@@ -188,6 +188,8 @@
|
||||
flex: none;
|
||||
}
|
||||
.b4 .shot .th :is(img, video) {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
@@ -591,7 +593,7 @@
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
top: 6px;
|
||||
font: 800 36px/1 var(--mono);
|
||||
font: 800 36px/1 var(--agent-number-font);
|
||||
color: transparent;
|
||||
-webkit-text-stroke: 1px rgb(var(--ink) / 0.22);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user