Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Improve design

React-Admin CIe3a9fee36231
diff --git a/src/components/atomic-crm/notes/AttachmentField.tsx b/src/components/atomic-crm/notes/AttachmentField.tsx
index c1689d7f..d80dfd11 100644
--- a/src/components/atomic-crm/notes/AttachmentField.tsx
+++ b/src/components/atomic-crm/notes/AttachmentField.tsx
@@ -56,6 +56,7 @@ export const AttachmentField = (props: FileFieldProps) => {
alt={fileTitleValue}
title={fileTitleValue}
src={srcValue}
+ className="w-[200px] h-[100px] object-cover cursor-pointer object-left border border-border"
/>
) : (
<a
@@ -79,7 +80,12 @@ export const AttachmentField = (props: FileFieldProps) => {
return (
<div className={cn("inline-block", className)} {...rest}>
{isImageMimeType(record?.rawFile.type) ? (
- <img alt={titleValue} title={titleValue} src={sourceValue?.toString()} />
+ <img
+ alt={titleValue}
+ title={titleValue}
+ src={sourceValue?.toString()}
+ className="w-[200px] h-[100px] object-cover cursor-pointer object-left border border-border"
+ />
) : (
<a
href={sourceValue?.toString()}