Skip to content

Commit ea6d8f0

Browse files
committed
update suggested workflows and dropdown size
1 parent a1998b0 commit ea6d8f0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/components/ChatInput.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ export function ChatInput({ onSendMessage, onEditYaml, disabled = false, streami
1818
const dropdownRef = useRef<HTMLDivElement>(null)
1919

2020
const suggestions = [
21-
"Create a simple workflow",
22-
"Add an OpenAI agent",
23-
"Build a data processing pipeline",
24-
"Create a web scraping workflow"
21+
"Create a simple workflow to test",
22+
"I want to fetch the current stock prices for Apple and Microsoft, and then analyze which one has performed better over the past week.",
23+
"Create a workflow to fetch the current weather in San Francisco"
2524
]
2625

2726
// Close dropdown when clicking outside
@@ -104,14 +103,14 @@ export function ChatInput({ onSendMessage, onEditYaml, disabled = false, streami
104103
</button>
105104

106105
{showSuggestions && (
107-
<div className="absolute bottom-full left-0 mb-2 w-64 bg-white border border-gray-200 rounded-xl shadow-lg z-10">
108-
<div className="p-2">
106+
<div className="absolute bottom-full left-0 mb-2 w-72 bg-white border border-gray-200 rounded-xl shadow-lg z-10">
107+
<div className="p-3">
109108
<div className="text-sm font-medium text-gray-500 mb-2 px-2">Suggestions</div>
110109
{suggestions.map((suggestion) => (
111110
<button
112111
key={suggestion}
113112
onClick={() => handleSuggestionClick(suggestion)}
114-
className="w-full text-left px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 rounded-lg transition-colors disabled:opacity-50"
113+
className="w-full text-left px-3 py-2 text-sm text-gray-700 hover:bg-gray-50 rounded-lg transition-colors disabled:opacity-50 mb-1"
115114
disabled={disabled}
116115
>
117116
{suggestion}

0 commit comments

Comments
 (0)