Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Reduce text input size to match button width

Abi Raja91c57e4ac76c
diff --git a/frontend/src/components/ImageUpload.tsx b/frontend/src/components/ImageUpload.tsx
index ffcfe23f..4e0cdb2c 100644
--- a/frontend/src/components/ImageUpload.tsx
+++ b/frontend/src/components/ImageUpload.tsx
@@ -219,15 +219,15 @@ function ImageUpload({ setReferenceImages, onUploadStateChange }: Props) {
</div>
{/* Text Prompt Input */}
- <div className="w-full max-w-2xl">
+ <div className="w-full max-w-md">
<textarea
ref={textInputRef}
value={textPrompt}
onChange={(e) => setTextPrompt(e.target.value)}
onKeyDown={handleKeyDown}
- placeholder="Add instructions (optional) - e.g., 'Make sure the buttons are rounded'"
- className="w-full p-3 text-sm border border-gray-300 rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-gray-400 focus:border-transparent"
- rows={2}
+ placeholder="Add instructions (optional)"
+ className="w-full p-2 text-sm border border-gray-300 rounded-md resize-none focus:outline-none focus:ring-2 focus:ring-gray-400 focus:border-transparent"
+ rows={1}
/>
</div>