Make variable dialog more clear

Closes #73
This commit is contained in:
Gregory Schier
2024-09-12 07:19:32 -07:00
parent ed48e1d52a
commit 590ea559e3
2 changed files with 6 additions and 3 deletions

View File

@@ -52,13 +52,16 @@ export function TemplateVariableDialog({ hide, onChange, initialTokens }: Props)
<VStack space={2}>
<Select
name="variable"
label="Variable"
label="Select Variable"
value={selectedVariableName}
options={variables.map((v) => ({ label: v.name, value: v.name }))}
onChange={setSelectedVariableName}
/>
</VStack>
<InlineCode className="select-text cursor-text">{rendered.data}</InlineCode>
<VStack>
<div className="text-sm text-text-subtle">Render Preview</div>
<InlineCode className="select-text cursor-text">{rendered.data}</InlineCode>
</VStack>
<Button color="primary" onClick={handleDone}>
Done
</Button>

View File

@@ -188,7 +188,7 @@ export const Editor = forwardRef<EditorView | undefined, EditorProps>(function E
dialog.show({
size: 'dynamic',
id: 'template-variable',
title: 'Configure Variable',
title: 'Change Variable',
render: ({ hide }) => (
<TemplateVariableDialog
hide={hide}