Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions webview-ui/src/components/chat/FollowUpSuggest.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useCallback } from "react"
import { ArrowRight, Edit } from "lucide-react"
import { Edit } from "lucide-react"

import { Button } from "@/components/ui"

Expand All @@ -26,16 +26,15 @@ export const FollowUpSuggest = ({ suggestions = [], onSuggestionClick, ts = 1 }:
}

return (
<div className="flex mb-2 flex-col h-full border rounded-xs">
<div className="flex mb-2 flex-col h-full gap-2">
{suggestions.map((suggestion) => (
<div key={`${suggestion}-${ts}`} className="w-full relative group">
<Button
variant="ghost"
variant="outline"
className="text-left whitespace-normal break-words w-full h-auto py-3 justify-start pr-8"
onClick={(event) => handleSuggestionClick(suggestion, event)}
aria-label={suggestion}>
<div className="flex flex-row items-center gap-2">
<ArrowRight />
<div>{suggestion}</div>
</div>
</Button>
Expand Down