Skip to content

Commit 7b8bbeb

Browse files
authored
fix(emails): sharpen wordmark, add clear space, and standardize footer icon sizes (#5802)
- Re-rasterize the email wordmark from vector at 4x with baked-in vertical clear space so it renders crisp and is no longer clipped at the top/bottom; size the header logo box to 68x41 to match. - Normalize the footer social icons (X, LinkedIn, GitHub, Slack) to a uniform cap-height on 40x40 (2x) canvases so they read as the same visual size. - Add display:block + border:0 to the linked social icons to avoid Outlook's inline-image gap and blue link border.
1 parent 3507934 commit 7b8bbeb

7 files changed

Lines changed: 16 additions & 2 deletions

File tree

apps/sim/components/emails/components/email-footer.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ export function EmailFooter({
3737
fontFamily: typography.fontFamily,
3838
}
3939

40+
/**
41+
* Social icons are linked images. `display: block` removes the 2–3px gap
42+
* Outlook adds under inline images, and `border: 0` prevents the blue link
43+
* border older Outlook versions draw around linked images.
44+
*/
45+
const socialIconStyle = {
46+
display: 'block' as const,
47+
border: 0,
48+
}
49+
4050
return (
4151
<Section
4252
style={{
@@ -77,6 +87,7 @@ export function EmailFooter({
7787
width='20'
7888
height='20'
7989
alt='X'
90+
style={socialIconStyle}
8091
/>
8192
</Link>
8293
</td>
@@ -87,6 +98,7 @@ export function EmailFooter({
8798
width='20'
8899
height='20'
89100
alt='LinkedIn'
101+
style={socialIconStyle}
90102
/>
91103
</Link>
92104
</td>
@@ -97,6 +109,7 @@ export function EmailFooter({
97109
width='20'
98110
height='20'
99111
alt='GitHub'
112+
style={socialIconStyle}
100113
/>
101114
</Link>
102115
</td>
@@ -107,6 +120,7 @@ export function EmailFooter({
107120
width='20'
108121
height='20'
109122
alt='Slack'
123+
style={socialIconStyle}
110124
/>
111125
</Link>
112126
</td>

apps/sim/components/emails/components/email-layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ export function EmailLayout({
5454
<Section style={baseStyles.header}>
5555
<Img
5656
src={brand.logoUrl || `${baseUrl}/brand/color/email/wordmark.png`}
57-
height='34'
58-
{...(hasCustomLogo ? {} : { width: '70' })}
57+
height='41'
58+
{...(hasCustomLogo ? {} : { width: '68' })}
5959
alt={brand.name}
6060
style={hasCustomLogo ? { display: 'block', width: 'auto' } : { display: 'block' }}
6161
/>
-5.13 KB
Loading
1.34 KB
Loading
614 Bytes
Loading
-67 Bytes
Loading

apps/sim/public/static/x-icon.png

1.61 KB
Loading

0 commit comments

Comments
 (0)