Skip to content

Commit a204032

Browse files
authored
fix(chat): fix chat attachments style in dark mode (#923)
1 parent a8be7e9 commit a204032

File tree

1 file changed

+6
-4
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/chat/components

1 file changed

+6
-4
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/chat/components/chat-file-upload.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,19 @@ export function ChatFileUpload({
187187
{files.map((file) => (
188188
<div
189189
key={file.id}
190-
className='flex items-center gap-2 rounded-md bg-gray-50 px-2 py-1 text-sm'
190+
className='flex items-center gap-2 rounded-md bg-gray-50 px-2 py-1 text-sm dark:bg-gray-800'
191191
>
192192
{getFileIcon(file.type)}
193-
<span className='flex-1 truncate' title={file.name}>
193+
<span className='flex-1 truncate dark:text-white' title={file.name}>
194194
{file.name}
195195
</span>
196-
<span className='text-gray-500 text-xs'>{formatFileSize(file.size)}</span>
196+
<span className='text-gray-500 text-xs dark:text-gray-400'>
197+
{formatFileSize(file.size)}
198+
</span>
197199
<button
198200
type='button'
199201
onClick={() => handleRemoveFile(file.id)}
200-
className='p-0.5 text-gray-400 transition-colors hover:text-red-500'
202+
className='p-0.5 text-gray-400 transition-colors hover:text-red-500 dark:text-gray-500 dark:hover:text-red-400'
201203
title='Remove file'
202204
>
203205
<X className='h-3 w-3' />

0 commit comments

Comments
 (0)