(fix:edit-query) replace input with textarea

This commit is contained in:
ManishMadan2882
2024-11-30 02:44:24 +05:30
parent 6953c3dbe4
commit 05fdf6b93a

View File

@@ -105,10 +105,14 @@ const ConversationBubble = forwardRef<
)}
{isEditClicked && (
<div ref={editableQueryRef} className="w-[75%] flex flex-col">
<input
onChange={(e) => setEditInputBox(e.target.value)}
<textarea
placeholder="Type the updated query..."
onChange={(e) => {
setEditInputBox(e.target.value);
}}
rows={1}
value={editInputBox}
className="ml-2 mr-2 rounded-[28px] py-[12px] dark:border-[0.5px] dark:border-white dark:bg-raisin-black dark:text-white px-[18px] border-[1.5px] border-black"
className="ml-2 mr-12 text-[15px] resize-y h-12 min-h-max rounded-3xl p-3 no-scrollbar leading-relaxed dark:border-[0.5px] dark:border-white dark:bg-raisin-black dark:text-white px-[18px] border-[1.5px] border-black"
/>
<div
className={`flex flex-row-reverse justify-end gap-1 mt-3 text-sm font-medium`}