Skip to content

Commit cde6729

Browse files
committed
Refactor partner list layout in pending applications email
Reorganized the partner row layout to separate the avatar, name/email, and action button into distinct columns with improved alignment and truncation for long text. This enhances readability and ensures consistent formatting in the pending applications summary email template.
1 parent 65cde14 commit cde6729

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

packages/email/src/templates/pending-applications-summary.tsx

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ export default function PendingApplicationsSummary({
7676

7777
<Heading className="mx-0 mb-5 mt-10 p-0 text-lg font-medium text-black">
7878
{nFormatter(totalCount, { full: true })}{" "}
79-
{pluralize("partner application", totalCount)}
80-
pending review
79+
{pluralize("partner application", totalCount)} pending review
8180
</Heading>
8281

8382
<Text className="text-sm leading-6 text-gray-600">
@@ -101,36 +100,39 @@ export default function PendingApplicationsSummary({
101100
className={`rounded-lg border border-solid border-neutral-200 bg-neutral-50 p-4 ${index < partners.length - 1 ? "mb-3" : ""}`}
102101
>
103102
<Row>
104-
<Column width="auto" className="pr-3" valign="middle">
105-
<div className="flex items-center">
106-
<Img
107-
src={
108-
partner.image || `${OG_AVATAR_URL}${partner.id}`
109-
}
110-
width="40"
111-
height="40"
112-
alt={partner.name || "partner avatar"}
113-
className="rounded-full"
114-
/>
115-
<div className="ml-3">
116-
<Text className="m-0 p-0 text-sm font-semibold text-neutral-900">
117-
{partner.name || ""}
118-
</Text>
119-
<Text className="m-0 p-0 text-sm font-medium text-neutral-500 no-underline">
120-
{partner.email}
121-
</Text>
122-
</div>
123-
</div>
124-
</Column>
125103
<Column
126-
width="auto"
127-
align="right"
104+
width={52}
128105
valign="middle"
129-
className="whitespace-nowrap"
106+
style={{ paddingRight: "12px" }}
130107
>
108+
<Img
109+
src={partner.image || `${OG_AVATAR_URL}${partner.id}`}
110+
width="40"
111+
height="40"
112+
alt={partner.name || "partner avatar"}
113+
className="rounded-full"
114+
/>
115+
</Column>
116+
<Column valign="middle" style={{ paddingRight: "12px" }}>
117+
<div
118+
style={{
119+
width: "200px",
120+
overflow: "hidden",
121+
}}
122+
>
123+
<Text className="m-0 truncate p-0 text-sm font-semibold text-neutral-900">
124+
{partner.name || ""}
125+
</Text>
126+
<Text className="m-0 truncate p-0 text-sm font-medium text-neutral-500 no-underline">
127+
{partner.email}
128+
</Text>
129+
</div>
130+
</Column>
131+
<Column width={90} align="right" valign="middle">
131132
<Link
132133
href={`${applicationsUrl}?partnerId=${partner.id}`}
133134
className="box-border inline-block rounded-md border border-solid border-neutral-200 bg-white px-4 py-2 text-center text-sm font-medium leading-none text-black no-underline"
135+
style={{ whiteSpace: "nowrap" }}
134136
>
135137
Review
136138
</Link>

0 commit comments

Comments
 (0)