Skip to content

Commit 68bc484

Browse files
fix(prompt-input): Adjust image preview hover state and alignment in input head (#256)
* fix(prompt-input): adjust image preview hover state and alignment in input head * Create major-ants-cut.md --------- Co-authored-by: Hayden Bleasel <[email protected]>
1 parent a726985 commit 68bc484

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/major-ants-cut.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ai-elements": patch
3+
---
4+
5+
fix(prompt-input): Adjust image preview hover state and alignment in input head

packages/elements/src/prompt-input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export function PromptInputAttachment({
286286
<HoverCardTrigger asChild>
287287
<div
288288
className={cn(
289-
"group relative flex h-8 cursor-default select-none items-center gap-1.5 rounded-md border border-border px-1.5 font-medium text-sm transition-all hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
289+
"group relative flex h-8 cursor-pointer select-none items-center gap-1.5 rounded-md border border-border px-1.5 font-medium text-sm transition-all hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
290290
className
291291
)}
292292
key={data.id}
@@ -377,7 +377,7 @@ export function PromptInputAttachments({
377377

378378
return (
379379
<div
380-
className={cn("flex flex-wrap items-center gap-2 p-3", className)}
380+
className={cn("flex flex-wrap items-center gap-2 p-3 w-full", className)}
381381
{...props}
382382
>
383383
{attachments.files.map((file) => (

0 commit comments

Comments
 (0)