fix(app): conditionally show model variant selector (#24115)

This commit is contained in:
Brendan Allan
2026-04-24 15:20:53 +08:00
committed by GitHub
parent a4bd88ab97
commit f033d2d8fb

View File

@@ -1574,6 +1574,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
</TooltipKeybind> </TooltipKeybind>
</Show> </Show>
</div> </div>
<Show when={variants().length > 2}>
<div <div
data-component="prompt-variant-control" data-component="prompt-variant-control"
style={providersShouldFadeIn() ? { animation: "fade-in 0.3s" } : undefined} style={providersShouldFadeIn() ? { animation: "fade-in 0.3s" } : undefined}
@@ -1603,6 +1604,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
</div> </div>
</Show> </Show>
</Show> </Show>
</Show>
</div> </div>
</div> </div>
</div> </div>