🩹 fix: restore textarea placeholder padding in ai-toolbar
Replace px-0 py-0 override with px-3 py-1 so placeholder text is never flush against the edge. The ::placeholder pseudo-element inherits box padding from the textarea; zeroing it out removed all visual breathing room for the hint text. Also adds tests/textarea.test.ts that locks down this behaviour via class-string assertions on the resolved cn() output.
This commit is contained in:
@@ -87,9 +87,9 @@ export const AIToolbar = ({
|
||||
AI Command
|
||||
</span>
|
||||
</div>
|
||||
<Textarea
|
||||
className="wrap-anywhere field-sizing-content resize-none w-full min-h-[2.5rem] max-h-64 overflow-y-auto bg-transparent border-0 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 px-0 py-0 text-sm placeholder:text-muted-foreground/60 placeholder:italic"
|
||||
placeholder="Describe an event or paste details..."
|
||||
<Textarea
|
||||
className="wrap-anywhere field-sizing-content resize-none w-full min-h-[2.5rem] max-h-64 overflow-y-auto bg-transparent border-0 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 px-3 py-1 text-sm placeholder:text-muted-foreground/60 placeholder:italic"
|
||||
placeholder="Describe an event or paste details..."
|
||||
value={aiPrompt}
|
||||
onChange={(e) => setAiPrompt(e.target.value)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user