smaller fonts, move chips up, truncate text
This commit is contained in:
parent
b13f1aadcf
commit
f6ba92be8d
4 changed files with 21 additions and 18 deletions
|
|
@ -41,17 +41,7 @@ export function InputScreen({
|
|||
</div>
|
||||
<div className="mt-5">
|
||||
<form onSubmit={handleSubmit} className="flex flex-col gap-1">
|
||||
<div className="flex flex-col gap-2">
|
||||
<textarea
|
||||
className="border-input-border bg-input text-input-foreground placeholder:text-input-placeholder focus:border-border-focus box-border w-full resize-none rounded border p-2 text-xs focus:outline-none"
|
||||
placeholder="Describe your rule..."
|
||||
rows={5}
|
||||
value={inputPrompt}
|
||||
onChange={(e) => onInputChange(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="mt-2 flex flex-wrap items-center justify-center gap-x-3">
|
||||
<div className="mb-2 flex flex-wrap items-center justify-center gap-x-3">
|
||||
{ruleTemplates.map((template, index) => (
|
||||
<RuleTemplateChip
|
||||
key={index}
|
||||
|
|
@ -62,6 +52,16 @@ export function InputScreen({
|
|||
))}
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col gap-2">
|
||||
<textarea
|
||||
className="border-input-border bg-input text-input-foreground placeholder:text-input-placeholder focus:border-border-focus box-border w-full resize-none rounded border p-2 text-xs focus:outline-none"
|
||||
placeholder="Describe your rule..."
|
||||
rows={5}
|
||||
value={inputPrompt}
|
||||
onChange={(e) => onInputChange(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="mt-4 flex flex-row justify-center gap-5">
|
||||
<Button
|
||||
type="button"
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ export function RuleTemplateChip({
|
|||
className="flex items-center gap-2"
|
||||
variant="secondary"
|
||||
>
|
||||
<Icon className="h-3.5 w-3.5" />
|
||||
<span>{text}</span>
|
||||
<Icon className="h-3 w-3" />
|
||||
<span className="text-xs">{text}</span>
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,22 +15,22 @@ export const ruleTemplates: RuleTemplate[] = [
|
|||
{
|
||||
icon: GlobeAltIcon,
|
||||
title: "Always Applied",
|
||||
template: "Create an always applied rule where for all files, <BEHAVIOR>",
|
||||
template: "Create an always applied rule where for all files...",
|
||||
},
|
||||
{
|
||||
icon: CodeBracketIcon,
|
||||
title: "Auto attached",
|
||||
template:
|
||||
"Create an auto-attached rule where for all <GLOB_PATTERN> files, <BEHAVIOR>",
|
||||
"Create an auto-attached rule where for all {FILE_EXTENSIONS} files...",
|
||||
},
|
||||
{
|
||||
icon: SparklesIcon,
|
||||
title: "Agent Requested",
|
||||
template: "Create an agent requested rule where <BEHAVIOR>",
|
||||
template: "Create an agent requested rule where...",
|
||||
},
|
||||
{
|
||||
icon: AtSymbolIcon,
|
||||
title: "Manual",
|
||||
template: "Create a manually requested rule where <BEHAVIOR>",
|
||||
template: "Create a manually requested rule where...",
|
||||
},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -45,7 +45,10 @@ export default function ResponseActions({
|
|||
>
|
||||
<span className="flex cursor-pointer items-center hover:brightness-125">
|
||||
<PlusIcon className="mr-1 h-3 w-3" />
|
||||
<span className="whitespace-nowrap">Generate rule</span>
|
||||
<span className="xs:block hidden whitespace-nowrap">
|
||||
Generate rule
|
||||
</span>
|
||||
<span className="xs:hidden block whitespace-nowrap">Rule</span>
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue