Hide Arguments header when prompt has no arguments
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
de40b3720e
commit
88a84b5547
1 changed files with 18 additions and 16 deletions
|
|
@ -35,8 +35,9 @@ export function PromptArgumentsForm({
|
|||
<Stack gap="md">
|
||||
<PromptTitle>{title ?? name}</PromptTitle>
|
||||
{description && <DescriptionText>{description}</DescriptionText>}
|
||||
<Title order={4}>Arguments</Title>
|
||||
{promptArguments && promptArguments.length > 0 && (
|
||||
<>
|
||||
<Title order={4}>Arguments</Title>
|
||||
<Stack gap="sm">
|
||||
{promptArguments.map((arg) => (
|
||||
<TextInput
|
||||
|
|
@ -52,6 +53,7 @@ export function PromptArgumentsForm({
|
|||
/>
|
||||
))}
|
||||
</Stack>
|
||||
</>
|
||||
)}
|
||||
<Group justify="flex-end">
|
||||
<Button size="sm" onClick={onGetPrompt}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue