Skip to content

Commit ece9f2f

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
refactor(ui): reuse icon button for chat file removal
1 parent 916a355 commit ece9f2f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat/chat.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,12 @@ function ChatFilePreview({ file, onRemove }: ChatFilePreviewProps) {
138138
<Button
139139
aria-label='Remove file'
140140
variant='ghost'
141+
size='icon'
141142
onClick={(event) => {
142143
event.stopPropagation()
143144
onRemove(file.id)
144145
}}
145-
className='absolute top-0.5 right-0.5 size-4 p-0 opacity-0 transition-opacity group-hover:opacity-100'
146+
className='absolute top-0.5 right-0.5 opacity-0 transition-opacity focus-visible:opacity-100 group-hover:opacity-100'
146147
>
147148
<X className='size-2.5' />
148149
</Button>

0 commit comments

Comments
 (0)