Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .changeset/major-ants-cut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ai-elements": patch
---

fix(prompt-input): Adjust image preview hover state and alignment in input head
4 changes: 2 additions & 2 deletions packages/elements/src/prompt-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export function PromptInputAttachment({
<HoverCardTrigger asChild>
<div
className={cn(
"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",
"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",
className
)}
key={data.id}
Expand Down Expand Up @@ -377,7 +377,7 @@ export function PromptInputAttachments({

return (
<div
className={cn("flex flex-wrap items-center gap-2 p-3", className)}
className={cn("flex flex-wrap items-center gap-2 p-3 w-full", className)}
{...props}
>
{attachments.files.map((file) => (
Expand Down