Skip to content

Commit

Permalink
Fixes display issues with the tooltip (#1904)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet authored Sep 29, 2023
1 parent e449a83 commit 234eb32
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions front/components/assistant/RenderMessageMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,10 @@ function MentionBlock({
: agentConfiguration?.status === "active"
? ""
: "(This assistant is deactivated for this workspace)";
const tooltipContent = (
<div className="flex w-64 flex-col gap-2">
<span>{agentConfiguration?.description}</span>
<span>{statusText}</span>
</div>
);
const tooltipLabel = agentConfiguration?.description || "" + " " + statusText;
return (
<span className="inline-block cursor-default font-medium text-brand">
<Tooltip contentChildren={tooltipContent} position="below">
<Tooltip label={tooltipLabel} position="below">
@{agentName}
</Tooltip>
</span>
Expand Down

0 comments on commit 234eb32

Please sign in to comment.