A full-featured CRM built with React, shadcn/ui, and Supabase.
revert activity log styles
Jean-Baptiste Kaiserd8b4db91201b
diff --git a/src/components/atomic-crm/activity/ActivityLogContactCreated.tsx b/src/components/atomic-crm/activity/ActivityLogContactCreated.tsxindex dea28000..b13ea757 100644--- a/src/components/atomic-crm/activity/ActivityLogContactCreated.tsx+++ b/src/components/atomic-crm/activity/ActivityLogContactCreated.tsx@@ -20,7 +20,7 @@ export function ActivityLogContactCreated({<div className="p-0"><div className="flex flex-row gap-2 items-center w-full"><Avatar width={20} height={20} record={contact} />- <span className="text-muted-foreground text-sm flex flex-wrap flex-grow">+ <span className="text-muted-foreground text-sm flex-grow"><ReferenceField source="sales_id" reference="sales" record={activity}><SaleName /></ReferenceField>diff --git a/src/components/atomic-crm/activity/ActivityLogContactNoteCreated.tsx b/src/components/atomic-crm/activity/ActivityLogContactNoteCreated.tsxindex f358ffd4..53bc49b7 100644--- a/src/components/atomic-crm/activity/ActivityLogContactNoteCreated.tsx+++ b/src/components/atomic-crm/activity/ActivityLogContactNoteCreated.tsx@@ -35,41 +35,37 @@ export function ActivityLogContactNoteCreated({<ContactAvatar /></ReferenceField>- <div className="flex flex-row flex-grow">- <div className="text-sm text-muted-foreground flex-grow">- <span className="text-muted-foreground text-sm flex flex-wrap">- <ReferenceField- source="sales_id"- reference="sales"- record={activity}- >- <SaleName />- </ReferenceField>- added a note about - <ReferenceField- source="contact_id"- reference="contacts"- record={activity.contactNote}- >- <TextField source="first_name" />- - <TextField source="last_name" />- </ReferenceField>- {context !== "company" && (- <>- - <RelativeDate date={activity.date} />- </>- )}- </span>- </div>-- {context === "company" && (- <span className="text-muted-foreground text-sm">+ <span className="text-muted-foreground text-sm flex-grow">+ <ReferenceField+ source="sales_id"+ reference="sales"+ record={activity}+ >+ <SaleName />+ </ReferenceField>+ added a note about + <ReferenceField+ source="contact_id"+ reference="contacts"+ record={activity.contactNote}+ >+ <TextField source="first_name" />+ + <TextField source="last_name" />+ </ReferenceField>+ {context !== "company" && (+ <>+ <RelativeDate date={activity.date} />- </span>+ </>)}- </div>+ </span>++ {context === "company" && (+ <span className="text-muted-foreground text-sm">+ <RelativeDate date={activity.date} />+ </span>+ )}</div>}text={contactNote.text}diff --git a/src/components/atomic-crm/activity/ActivityLogDealNoteCreated.tsx b/src/components/atomic-crm/activity/ActivityLogDealNoteCreated.tsxindex c92bd1a0..ab2432b2 100644--- a/src/components/atomic-crm/activity/ActivityLogDealNoteCreated.tsx+++ b/src/components/atomic-crm/activity/ActivityLogDealNoteCreated.tsx@@ -38,7 +38,7 @@ export function ActivityLogDealNoteCreated({</ReferenceField></ReferenceField>- <span className="text-muted-foreground text-sm flex-grow flex flex-wrap">+ <span className="text-muted-foreground text-sm flex-grow"><ReferenceFieldsource="sales_id"reference="sales"@@ -56,7 +56,7 @@ export function ActivityLogDealNoteCreated({/>{context !== "company" && (<>- {"\u00A0at\u00A0"}+ at <ReferenceFieldsource="deal_id"reference="deals"