Merge pull request #6669 from continuedev/pe/generate-rule-btn

chore: use icon for generate rule action
This commit is contained in:
Dallin Romney 2025-07-17 15:49:30 +02:00 • committed by GitHub
commit eb610bee0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
import {
BarsArrowDownIcon,
PlusIcon,
PencilSquareIcon,
TrashIcon,
} from "@heroicons/react/24/outline";
import { ChatHistoryItem } from "core";
@ -47,18 +47,13 @@ export default function ResponseActions({
return (
<div className="text-description-muted mx-2 flex cursor-default items-center justify-end space-x-1 bg-transparent pb-0 text-xs">
{isLast && ruleGenerationSupported && (
<div
className="mr-1 border-y-0 border-l-0 border-r border-solid pr-2"
<HeaderButtonWithToolTip
tabIndex={-1}
text="Generate rule"
onClick={onGenerateRule}
>
<span className="flex cursor-pointer items-center hover:brightness-125">
<PlusIcon className="mr-1 h-3 w-3" />
<span className="xs:block hidden whitespace-nowrap">
Generate rule
</span>
<span className="xs:hidden block whitespace-nowrap">Rule</span>
</span>
</div>
<PencilSquareIcon className="text-description-muted h-3.5 w-3.5" />
</HeaderButtonWithToolTip>
)}
{isTruncated && (