A full-featured CRM built with React, shadcn/ui, and Supabase.
improve touch areas, text sizes and text wrapping
Jean-Baptiste Kaiser22b8ce747546
diff --git a/src/components/atomic-crm/activity/ActivityLogContactCreated.tsx b/src/components/atomic-crm/activity/ActivityLogContactCreated.tsxindex 90e4e41e..43460b19 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 inline-flex flex-grow">+ <span className="text-muted-foreground text-sm flex flex-wrap 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 7ec80998..3ca8fa1c 100644--- a/src/components/atomic-crm/activity/ActivityLogContactNoteCreated.tsx+++ b/src/components/atomic-crm/activity/ActivityLogContactNoteCreated.tsx@@ -37,7 +37,7 @@ export function ActivityLogContactNoteCreated({<div className="flex flex-row flex-grow"><div className="text-sm text-muted-foreground flex-grow">- <span className="text-muted-foreground text-sm inline-flex">+ <span className="text-muted-foreground text-sm flex flex-wrap"><ReferenceFieldsource="sales_id"reference="sales"@@ -45,12 +45,13 @@ export function ActivityLogContactNoteCreated({><SaleName /></ReferenceField>+ added a note about <ReferenceFieldsource="contact_id"reference="contacts"record={activity.contactNote}>- added a note about <TextField source="first_name" />+ <TextField source="first_name" /> <TextField source="last_name" /></ReferenceField>diff --git a/src/components/atomic-crm/activity/ActivityLogDealNoteCreated.tsx b/src/components/atomic-crm/activity/ActivityLogDealNoteCreated.tsxindex 3810498b..450aece5 100644--- a/src/components/atomic-crm/activity/ActivityLogDealNoteCreated.tsx+++ b/src/components/atomic-crm/activity/ActivityLogDealNoteCreated.tsx@@ -36,7 +36,7 @@ export function ActivityLogDealNoteCreated({</ReferenceField></ReferenceField>- <span className="text-sm text-muted-foreground flex-grow inline-flex">+ <span className="text-sm text-muted-foreground flex-grow flex flex-wrap"><ReferenceFieldsource="sales_id"reference="sales"@@ -54,7 +54,7 @@ export function ActivityLogDealNoteCreated({/>{context !== "company" && (<>- {" at "}+ {"\u00A0at\u00A0"}<ReferenceFieldsource="deal_id"reference="deals"diff --git a/src/components/atomic-crm/contacts/ContactBackgroundInfo.tsx b/src/components/atomic-crm/contacts/ContactBackgroundInfo.tsxindex 4a19253c..ec1557af 100644--- a/src/components/atomic-crm/contacts/ContactBackgroundInfo.tsx+++ b/src/components/atomic-crm/contacts/ContactBackgroundInfo.tsx@@ -15,20 +15,22 @@ export const ContactBackgroundInfo = () => {<WithRecord<Contact>render={(record) =>record?.background ? (- <TextField source="background" record={record} className="pb-2" />+ <div className="pb-2">+ <TextField source="background" record={record} />+ </div>) : null}/>- <div className="text-muted-foreground">- <span className="text-sm">Added on</span>{" "}+ <div className="text-muted-foreground pb-1">+ <span className="md:text-sm">Added on</span>{" "}<DateFieldsource="first_seen"options={{ year: "numeric", month: "long", day: "numeric" }}/></div>- <div className="text-muted-foreground">- <span className="text-sm">Last activity on</span>{" "}+ <div className="text-muted-foreground pb-1">+ <span className="md:text-sm">Last activity on</span>{" "}<DateFieldsource="last_seen"options={{ year: "numeric", month: "long", day: "numeric" }}diff --git a/src/components/atomic-crm/contacts/ContactPersonalInfo.tsx b/src/components/atomic-crm/contacts/ContactPersonalInfo.tsxindex 854cb6f5..c2b63c51 100644--- a/src/components/atomic-crm/contacts/ContactPersonalInfo.tsx+++ b/src/components/atomic-crm/contacts/ContactPersonalInfo.tsx@@ -26,7 +26,7 @@ export const ContactPersonalInfo = () => {</ArrayField>{record.has_newsletter && (- <p className="pl-6 md:text-sm text-muted-foreground">+ <p className="pl-6 py-1 md:text-sm text-muted-foreground">Subscribed to newsletter</p>)}@@ -65,7 +65,7 @@ export const ContactPersonalInfo = () => {icon={<genderOption.icon className="w-4 h-4 text-muted-foreground" />}- primary={<span>{genderOption.label}</span>}+ primary={<div className="pt-2">{genderOption.label}</div>}/>);}diff --git a/src/components/atomic-crm/contacts/ContactShow.tsx b/src/components/atomic-crm/contacts/ContactShow.tsxindex 3d7a0428..59b974f3 100644--- a/src/components/atomic-crm/contacts/ContactShow.tsx+++ b/src/components/atomic-crm/contacts/ContactShow.tsx@@ -81,7 +81,7 @@ const ContactShowContentMobile = () => {</div><Tabs defaultValue="notes" className="w-full">- <TabsList className="grid w-full grid-cols-3">+ <TabsList className="grid w-full grid-cols-3 h-10"><TabsTrigger value="notes">Notes</TabsTrigger><TabsTrigger value="tasks"><ReferenceManyCountdiff --git a/src/components/atomic-crm/contacts/TagsListEdit.tsx b/src/components/atomic-crm/contacts/TagsListEdit.tsxindex 7dca0561..c42c2b1f 100644--- a/src/components/atomic-crm/contacts/TagsListEdit.tsx+++ b/src/components/atomic-crm/contacts/TagsListEdit.tsx@@ -109,8 +109,12 @@ export const TagsListEdit = () => {<div><DropdownMenu><DropdownMenuTrigger asChild>- <Button variant="outline" size="sm" className="h-6 cursor-pointer">- <Plus className="h-3 w-3 mr-1" />+ <Button+ variant="outline"+ size="sm"+ className="h-9 md:h-6 cursor-pointer"+ >+ <Plus className="w-4 h-4 md:w-3 md:h-3 mr-1" />Add tag</Button></DropdownMenuTrigger>@@ -122,7 +126,7 @@ export const TagsListEdit = () => {><Badgevariant="secondary"- className="text-xs font-normal text-black"+ className="text-sm md:text-xs font-normal text-black"style={{backgroundColor: tag.color,}}@@ -135,9 +139,9 @@ export const TagsListEdit = () => {<Buttonvariant="ghost"size="sm"- className="w-full justify-start p-0 cursor-pointer"+ className="w-full justify-start p-0 cursor-pointer text-base md:text-sm">- <Edit className="h-3 w-3 mr-2" />+ <Edit className="w-4 h-4 md:w-3 md:h-3 mr-2" />Create new tag</Button></DropdownMenuItem>diff --git a/src/components/atomic-crm/tags/TagChip.tsx b/src/components/atomic-crm/tags/TagChip.tsxindex ec88e41d..18b50951 100644--- a/src/components/atomic-crm/tags/TagChip.tsx+++ b/src/components/atomic-crm/tags/TagChip.tsx@@ -24,7 +24,7 @@ export function TagChip({ tag, onUnlink }: TagChipProps) {return (<><div- className="text-black inline-flex items-center gap-1 px-2 py-1 text-xs rounded-md cursor-pointer hover:opacity-80 transition-opacity"+ className="text-black inline-flex items-center gap-1 px-4 md:px-2 py-2 md:py-1 text-sm md:text-xs rounded-md cursor-pointer hover:opacity-80 transition-opacity"style={{ backgroundColor: tag.color }}onClick={handleClick}>@@ -36,7 +36,7 @@ export function TagChip({ tag, onUnlink }: TagChipProps) {}}className="transition-colors p-0 ml-1 cursor-pointer">- <X className="w-3 h-3" />+ <X className="w-4 h-4 md:w-3 md:h-3" /></button></div><TagEditModal tag={tag} open={open} onClose={handleClose} />diff --git a/src/components/atomic-crm/tasks/Task.tsx b/src/components/atomic-crm/tasks/Task.tsxindex 7d998a9d..70230647 100644--- a/src/components/atomic-crm/tasks/Task.tsx+++ b/src/components/atomic-crm/tasks/Task.tsx@@ -154,7 +154,7 @@ export const Task = ({</DropdownMenuTrigger><DropdownMenuContent align="end"><DropdownMenuItem- className="cursor-pointer"+ className="cursor-pointer h-12 md:h-8 px-4 md:px-2 text-base md:text-sm"onClick={() => {update("tasks", {id: task.id,@@ -170,7 +170,7 @@ export const Task = ({Postpone to tomorrow</DropdownMenuItem><DropdownMenuItem- className="cursor-pointer"+ className="cursor-pointer h-12 md:h-8 px-4 md:px-2 text-base md:text-sm"onClick={() => {update("tasks", {id: task.id,@@ -185,10 +185,16 @@ export const Task = ({>Postpone to next week</DropdownMenuItem>- <DropdownMenuItem className="cursor-pointer" onClick={handleEdit}>+ <DropdownMenuItem+ className="cursor-pointer h-12 md:h-8 px-4 md:px-2 text-base md:text-sm"+ onClick={handleEdit}+ >Edit</DropdownMenuItem>- <DropdownMenuItem className="cursor-pointer" onClick={handleDelete}>+ <DropdownMenuItem+ className="cursor-pointer h-12 md:h-8 px-4 md:px-2 text-base md:text-sm"+ onClick={handleDelete}+ >Delete</DropdownMenuItem></DropdownMenuContent>