mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
feat: Add @ and keyboard navigation to tool picker in prompt editor
This commit is contained in:
@ -78,6 +78,7 @@ const ToolItem: FC<Props> = ({
|
||||
>
|
||||
<div
|
||||
key={payload.name}
|
||||
data-tool-picker-item="true"
|
||||
className="flex cursor-pointer items-center justify-between rounded-lg pl-[21px] pr-1 hover:bg-state-base-hover"
|
||||
onClick={() => {
|
||||
if (disabled)
|
||||
|
||||
@ -181,6 +181,7 @@ const Tool: FC<Props> = ({
|
||||
<div className={cn(className)}>
|
||||
<div
|
||||
className="group/item flex w-full cursor-pointer select-none items-center justify-between rounded-lg pl-3 pr-1 hover:bg-state-base-hover"
|
||||
data-tool-picker-item="true"
|
||||
onClick={() => {
|
||||
if (hasAction) {
|
||||
setFold(!isFold)
|
||||
|
||||
Reference in New Issue
Block a user