Skip to content

Commit

Permalink
chore(ui): conditionally display the at function button (#3945)
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung authored Mar 5, 2025
1 parent 93de5af commit 9cb0a07
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions ee/tabby-ui/components/chat/prompt-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,15 @@ const PromptForm = React.forwardRef<PromptFormRef, PromptProps>(
</div>
<div className="flex items-center justify-between">
<div className="-ml-1.5 flex items-center gap-2">
<Button
variant="ghost"
className="h-auto shrink-0 gap-2 p-1.5 text-foreground/90"
onClick={e => onInsertMention('@')}
>
<IconAtSign />
</Button>
{!!listFileInWorkspace && (
<Button
variant="ghost"
className="h-auto shrink-0 gap-2 p-1.5 text-foreground/90"
onClick={e => onInsertMention('@')}
>
<IconAtSign />
</Button>
)}
<ModelSelect
models={models}
value={selectedModel}
Expand Down

0 comments on commit 9cb0a07

Please sign in to comment.