Skip to content

Commit 58d097a

Browse files
committed
Match the AI example query buttons with the AskAI examples
1 parent c81f6b9 commit 58d097a

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.query

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.query/AITabContent.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { useState } from "react";
2+
import { SparkleListIcon } from "~/assets/icons/SparkleListIcon";
23
import { AIQueryInput } from "~/components/code/AIQueryInput";
34
import { Header3 } from "~/components/primitives/Headers";
5+
import { Paragraph } from "~/components/primitives/Paragraph";
46
import type { AITimeFilter } from "./types";
57

68
export function AITabContent({
@@ -41,8 +43,8 @@ export function AITabContent({
4143
/>
4244

4345
<div className="pt-4">
44-
<Header3 className="mb-2 text-text-bright">Example prompts</Header3>
45-
<div className="space-y-2">
46+
<Header3 className="mb-3 text-text-bright">Example prompts</Header3>
47+
<div className="flex flex-wrap gap-2">
4648
{examplePrompts.map((example) => (
4749
<button
4850
key={example}
@@ -53,14 +55,16 @@ export function AITabContent({
5355
key: (prev?.key ?? 0) + 1,
5456
}));
5557
}}
56-
className="block w-full rounded-md border border-grid-dimmed bg-charcoal-800 px-3 py-2 text-left text-sm text-text-dimmed transition-colors hover:border-grid-bright hover:bg-charcoal-750 hover:text-text-bright"
58+
className="group flex w-fit items-center gap-2 rounded-full border border-dashed border-charcoal-600 px-4 py-2 transition-colors hover:border-solid hover:border-indigo-500"
5759
>
58-
{example}
60+
<SparkleListIcon className="size-4 text-text-dimmed transition group-hover:text-indigo-500" />
61+
<Paragraph variant="small" className="transition group-hover:text-text-bright">
62+
{example}
63+
</Paragraph>
5964
</button>
6065
))}
6166
</div>
6267
</div>
6368
</div>
6469
);
6570
}
66-

0 commit comments

Comments
 (0)