Skip to content
Merged
Changes from all commits
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
30 changes: 16 additions & 14 deletions components/CustomSearchDialog/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,31 @@ export function SearchInput({
};

return (
<div className="flex gap-2 h-10">
<div className="flex gap-2 min-h-[40px]">
{/* Textarea Container */}
<div className="flex-1 min-w-0 relative">
<textarea
ref={textareaRef}
value={currentInput}
onChange={(e) => setCurrentInput(e.target.value)}
onKeyDown={handleKeyDown}
placeholder="Ask about Agentuity..."
className="w-full px-3 py-2 text-sm border border-gray-200 dark:border-gray-700 rounded-lg focus:outline-none focus:ring-1 focus:ring-gray-300 dark:focus:ring-gray-600 focus:border-transparent bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-200 placeholder-gray-400 dark:placeholder-gray-500 transition-all resize-none min-h-[40px] max-h-[150px] overflow-y-auto"
disabled={loading}
rows={1}
/>
<div className="flex-1 min-w-0 flex flex-col">
<div className="relative flex-1">
<textarea
ref={textareaRef}
value={currentInput}
onChange={(e) => setCurrentInput(e.target.value)}
onKeyDown={handleKeyDown}
placeholder="Ask about Agentuity..."
className="w-full px-3 py-2 text-sm border border-gray-200 dark:border-gray-700 rounded-lg focus:outline-none focus:ring-1 focus:ring-gray-300 dark:focus:ring-gray-600 focus:border-transparent bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-200 placeholder-gray-400 dark:placeholder-gray-500 transition-all resize-none min-h-[40px] max-h-[150px] overflow-y-auto"
disabled={loading}
rows={1}
/>
</div>
{currentInput.trim() && !loading && (
<div className="absolute right-2 bottom-2 text-xs text-gray-400 pointer-events-none">
<div className="text-xs text-gray-400 text-right pr-2 pb-1">
Press Enter to send
</div>
)}
</div>
<button
onClick={handleSend}
disabled={loading || !currentInput.trim()}
className="h-[40px] w-[40px] bg-gray-800 hover:bg-gray-900 disabled:bg-gray-200 dark:disabled:bg-gray-700 disabled:text-gray-400 text-white text-sm rounded-lg transition-colors disabled:cursor-not-allowed flex items-center justify-center flex-shrink-0"
className="h-[40px] w-[40px] bg-gray-800 hover:bg-gray-900 disabled:bg-gray-200 dark:disabled:bg-gray-700 disabled:text-gray-400 text-white text-sm rounded-lg transition-colors disabled:cursor-not-allowed flex items-center justify-center flex-shrink-0 self-end"
aria-label="Send message"
type="button"
>
Expand Down