Merge pull request #6669 from continuedev/pe/generate-rule-btn
chore: use icon for generate rule action
This commit is contained in:
commit
eb610bee0a
1 changed files with 6 additions and 11 deletions
|
|
@ -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 && (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue