fix(canvas): 创作输入栏 - 分离模型价格展示并收敛录音与附件入口
This commit is contained in:
@@ -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 ? (
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user