Skip to content

Commit f56259c

Browse files
feature: Reduce redundant UI docs
1 parent 170a4e4 commit f56259c

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/components/QueryEditor.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,19 @@ export function QueryEditor({ query, onChange, onRunQuery }: Props) {
5353
case 0: // Eval
5454
return (
5555
<Field>
56-
<InlineField label="Axon" labelWidth="auto" tooltip="An Axon expression to evaluate on the Haystack server">
57-
<Input width={100} prefix={<Icon name="angle-right" />} onChange={onEvalChange} value={query.eval} placeholder={DEFAULT_QUERY.eval} />
58-
</InlineField>
56+
<Input width={100} prefix={<Icon name="angle-right" />} onChange={onEvalChange} value={query.eval} placeholder={DEFAULT_QUERY.eval} />
5957
</Field>
6058
);
6159
case 1: // HisRead
6260
return (
6361
<Field>
64-
<InlineField label="Point ID" labelWidth="auto" tooltip="The ID of the point to read">
65-
<Input width={100} prefix={"@"} onChange={onHisReadChange} value={query.hisRead} placeholder={DEFAULT_QUERY.hisRead} />
66-
</InlineField>
62+
<Input width={30} prefix={"@"} onChange={onHisReadChange} value={query.hisRead} placeholder={DEFAULT_QUERY.hisRead} />
6763
</Field>
6864
);
6965
case 2: // Read
7066
return (
7167
<Field>
72-
<InlineField label="Filter" labelWidth="auto" tooltip="A filter for the desired records">
73-
<Input width={100} prefix={<Icon name="filter" />} onChange={onReadChange} value={query.read} placeholder={DEFAULT_QUERY.read} />
74-
</InlineField>
68+
<Input width={75} prefix={<Icon name="filter" />} onChange={onReadChange} value={query.read} placeholder={DEFAULT_QUERY.read} />
7569
</Field>
7670
);
7771
}

0 commit comments

Comments
 (0)