Skip to content

Commit

Permalink
Fix display agent suggestion on mobile (#1930)
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph authored Oct 3, 2023
1 parent 50bc781 commit 6a07f79
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions front/components/assistant/conversation/AgentSuggestion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,18 @@ export function AgentSuggestion({
<div className="text-xs font-bold text-element-600">
Which Assistant would you like to talk with?
</div>
<div className="mt-3 flex items-center gap-2">
<Button.List>
{agents.slice(0, 3).map((agent) => (
<div className="mt-3 flex flex-col gap-2 sm:flex-row">
{agents.slice(0, 3).map((agent) => (
<div key={`message-${userMessage.sId}-suggestion-${agent.sId}`}>
<Button
key={`message-${userMessage.sId}-suggestion-${agent.sId}`}
size="xs"
variant="avatar"
label={`@${agent.name}`}
onClick={() => selectSuggestionHandler(agent)}
avatar={agent.pictureUrl}
/>
))}
</Button.List>
</div>
))}
<AssistantPicker
owner={owner}
assistants={agents.slice(3)}
Expand Down

0 comments on commit 6a07f79

Please sign in to comment.