Skip to content

Commit

Permalink
Update file preview bar to use object-contain for image resizing and …
Browse files Browse the repository at this point in the history
…add dark mode styling for background color
  • Loading branch information
Royal-lobster committed Nov 26, 2023
1 parent 7abe7ae commit 2da762d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Sidebar/chat/FilePreviewBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const FilePreviewBar = ({ files, removeFile }: FilePreviewBarProps) => {
<img
src={URL.createObjectURL(file.blob)}
alt="preview"
className="cdx-w-14 cdx-h-14 cdx-object-cover cdx-rounded cdx-bg-neutral-500"
className="cdx-w-14 cdx-h-14 cdx-object-contain cdx-rounded dark:cdx-bg-neutral-800 cdx-bg-neutral-400"
/>
</div>
{removeFile && (
Expand Down

0 comments on commit 2da762d

Please sign in to comment.