fix(canvas): 创作输入栏 - 分离模型价格展示并收敛录音与附件入口

This commit is contained in:
ddCat
2026-09-01 20:01:52 +08:00
parent 0330e64857
commit 41d99374ca
5 changed files with 29 additions and 44 deletions

View File

@@ -108,7 +108,7 @@ export function VoiceRecordingInline({ onTranscribed, onCancel }: VoiceRecording
return (
<div
className="flex min-w-0 flex-1 items-center gap-2 rounded-lg border px-2 py-1.5"
className="voice-recording-inline flex min-w-0 flex-1 items-center gap-2 rounded-lg border px-2 py-1.5"
style={{ background: theme.toolbar.panel, borderColor: theme.toolbar.border }}
>
{displayError ? (

View File

@@ -24,6 +24,7 @@ type ModelPickerProps = {
placeholder?: string;
onMissingConfig?: () => void;
showSelectedPrice?: boolean;
showOptionPrices?: boolean;
variant?: "default" | "creation";
requirements?: ModelRequirements;
showConfiguredModelName?: boolean;
@@ -40,6 +41,7 @@ export function ModelPicker({
placeholder = "选择模型",
onMissingConfig,
showSelectedPrice = true,
showOptionPrices = showSelectedPrice,
variant = "default",
requirements,
showConfiguredModelName = false,
@@ -226,7 +228,7 @@ export function ModelPicker({
theme={theme}
creationVariant={creationVariant}
showConfiguredModelName={showConfiguredModelName}
showPrice={showSelectedPrice && creditsEnabled}
showPrice={showOptionPrices && creditsEnabled}
disabledReason={disabledReason}
/>
{selected ? <Check className="canvas-model-picker-option-check" style={{ color: theme.node.activeStroke }} /> : null}