Skip to content

Commit b27f96c

Browse files
Miriadseniordeveloper
andcommitted
fix: wrap CodingCat.dev branding in spans for Satori compatibility
Satori treats text + element as multiple children requiring display:flex. "CodingCat<span>.dev</span>" is mixed content (text node + span element). Fix: wrap both parts in <span> elements and add display:flex to parent. Applied to both generateOgHtml and generateDefaultOgHtml. Build: 18.76s ✅ Co-authored-by: seniordeveloper <seniordeveloper@miriad.systems>
1 parent e5cb2c4 commit b27f96c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/web/src/lib/og-utils.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ export function generateOgHtml({
157157
font-size: 24px;
158158
font-weight: 700;
159159
color: ${BRAND.text};
160-
">CodingCat<span style="color: ${BRAND.primary};">.dev</span></div>
160+
display: flex;
161+
"><span>CodingCat</span><span style="color: ${BRAND.primary};">.dev</span></div>
161162
</div>
162163
${badgeBlock}
163164
</div>
@@ -254,7 +255,8 @@ export function generateDefaultOgHtml({
254255
font-size: 24px;
255256
font-weight: 700;
256257
color: ${BRAND.text};
257-
">CodingCat<span style="color: ${BRAND.primary};">.dev</span></div>
258+
display: flex;
259+
"><span>CodingCat</span><span style="color: ${BRAND.primary};">.dev</span></div>
258260
</div>
259261
260262
<div style="

0 commit comments

Comments
 (0)