From f15e538f5c78db507c7c3277a51558f7dd9f59b9 Mon Sep 17 00:00:00 2001 From: Chandler Copeland Date: Fri, 3 Apr 2026 17:51:44 -0600 Subject: [PATCH] fix(ui): uniform card heights, tinted bottom section on client cards --- .../src/app/portal/_components/ClientCard.tsx | 40 ++++++++++--------- .../portal/_components/ClientsPageClient.tsx | 2 +- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/teressa-copeland-homes/src/app/portal/_components/ClientCard.tsx b/teressa-copeland-homes/src/app/portal/_components/ClientCard.tsx index 02b3394..7e4fbd0 100644 --- a/teressa-copeland-homes/src/app/portal/_components/ClientCard.tsx +++ b/teressa-copeland-homes/src/app/portal/_components/ClientCard.tsx @@ -12,32 +12,34 @@ type ClientCardProps = { export function ClientCard({ id, name, email, contacts = [], docCount, lastActivity }: ClientCardProps) { return ( - +
(e.currentTarget.style.boxShadow = "0 4px 12px rgba(0,0,0,0.12)")} onMouseLeave={e => (e.currentTarget.style.boxShadow = "0 1px 4px rgba(0,0,0,0.07)")} > - {/* Primary contact */} -

{name}

-

0 ? "0.5rem" : "0.75rem" }}>{email}

+ {/* Top section — contact info, grows to fill */} +
+

{name}

+

{email}

- {/* Additional contacts */} - {contacts.length > 0 && ( -
- {contacts.map(c => ( -
- + -
- {c.name} - {c.email} + {contacts.length > 0 && ( +
+ {contacts.map(c => ( +
+ + +
+ {c.name} + {c.email} +
-
- ))} -
- )} + ))} +
+ )} +
-
+ {/* Bottom section — tinted, always at bottom */} +
{docCount} document{docCount !== 1 ? "s" : ""} {lastActivity diff --git a/teressa-copeland-homes/src/app/portal/_components/ClientsPageClient.tsx b/teressa-copeland-homes/src/app/portal/_components/ClientsPageClient.tsx index 6626467..2ad4c14 100644 --- a/teressa-copeland-homes/src/app/portal/_components/ClientsPageClient.tsx +++ b/teressa-copeland-homes/src/app/portal/_components/ClientsPageClient.tsx @@ -46,7 +46,7 @@ export function ClientsPageClient({ clients }: { clients: ClientRow[] }) {
) : ( -
+
{clients.map((client) => (