@@ -21,6 +21,7 @@ import type {
2121 PromptInputV2Suggestion ,
2222} from "./types"
2323import type { PromptInputV2Interaction , PromptInputV2SelectControl } from "./interaction"
24+ import "./attachments.css"
2425
2526export type {
2627 PromptInputV2Attachment ,
@@ -107,7 +108,7 @@ export function PromptInputV2(props: PromptInputV2Props) {
107108 < form
108109 data-component = "prompt-input-v2"
109110 data-dock-border-underlay = { props . borderUnderlay ? "v2" : undefined }
110- class = "group/prompt-input relative min-h-[96px] w-full rounded-xl bg-v2-background-bg-base"
111+ class = "group/prompt-input relative min-h-[96px] w-full overflow-clip rounded-xl bg-v2-background-bg-base"
111112 classList = { {
112113 "shadow-[var(--v2-elevation-raised)]" : ! props . borderUnderlay ,
113114 "border border-v2-icon-icon-info border-dashed" : state . drag === "active" ,
@@ -378,7 +379,7 @@ export function PromptInputV2Attachments(props: {
378379} ) {
379380 return (
380381 < Show when = { props . attachments . length > 0 || ( props . comments ?. length ?? 0 ) > 0 } >
381- < div data-slot = "prompt-attachments" class = "relative" >
382+ < div data-component = "prompt-input-v2-attachments" data- slot= "prompt-attachments" class = "relative" >
382383 < div
383384 data-slot = "prompt-attachments-scroll"
384385 class = "flex flex-nowrap gap-2 overflow-x-auto no-scrollbar px-2 pt-2 pb-1"
@@ -444,8 +445,14 @@ export function PromptInputV2Attachments(props: {
444445 ) }
445446 </ For >
446447 </ div >
447- < div class = "pointer-events-none absolute inset-y-0 left-0 z-10 w-6 bg-[linear-gradient(to_right,var(--v2-background-bg-base),transparent)]" />
448- < div class = "pointer-events-none absolute inset-y-0 right-0 z-10 w-6 bg-[linear-gradient(to_left,var(--v2-background-bg-base),transparent)]" />
448+ < div
449+ data-slot = "prompt-attachments-fade-left"
450+ class = "pointer-events-none absolute inset-y-0 left-0 z-10 w-6 bg-[linear-gradient(to_right,var(--v2-background-bg-base),transparent)]"
451+ />
452+ < div
453+ data-slot = "prompt-attachments-fade-right"
454+ class = "pointer-events-none absolute inset-y-0 right-0 z-10 w-6 bg-[linear-gradient(to_left,var(--v2-background-bg-base),transparent)]"
455+ />
449456 </ div >
450457 </ Show >
451458 )
0 commit comments