Skip to content

Commit

Permalink
Fix: assistant picker broken if some assistant names > 20 chars (#4568)
Browse files Browse the repository at this point in the history
* Fix: assistant picker broken if some assistant names > 20 chars

* review

* clean
  • Loading branch information
philipperolet authored Apr 4, 2024
1 parent 707dfb4 commit 0bd9f9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion front/components/assistant/AssistantPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,14 @@ export function AssistantPicker({
>
<Item.Avatar
key={`assistant-picker-${c.sId}`}
label={"@" + c.name}
label={c.name}
visual={c.pictureUrl}
hasAction={false}
onClick={() => {
onItemClick(c);
setSearchText("");
}}
className="truncate"
/>
<IconButton
icon={MoreIcon}
Expand Down
4 changes: 2 additions & 2 deletions front/components/assistant_builder/InstructionScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
MistralLogo,
OpenaiLogo,
Page,
Spinner,
Spinner2,
TextArea,
} from "@dust-tt/sparkle";
import type {
Expand Down Expand Up @@ -335,7 +335,7 @@ function Suggestions({
<div className="flex flex-col gap-2">
<div className="flex gap-1 text-base font-bold text-element-800">
<div>Tips</div>
{loading && <Spinner size="sm" />}
{loading && <Spinner2 size="sm" />}
</div>
<div>
{(() => {
Expand Down

0 comments on commit 0bd9f9a

Please sign in to comment.