From 78d4b481d46f2e7c745d76cb0b28dc7884e9f7ab Mon Sep 17 00:00:00 2001 From: nemanjam Date: Sat, 13 Jul 2024 13:57:04 +0200 Subject: [PATCH] fix siteUrl responsive limit --- src/libs/api/open-graph/template-html.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/api/open-graph/template-html.ts b/src/libs/api/open-graph/template-html.ts index 1a83ea6..6cea8e8 100644 --- a/src/libs/api/open-graph/template-html.ts +++ b/src/libs/api/open-graph/template-html.ts @@ -12,8 +12,8 @@ export interface TemplateProps { const templateHtml = ({ title, heroImageUrl, avatarImageUrl, siteUrl }: TemplateProps) => { // 2 rows - max 30 chars - // 1 row - max 18 chars - const isLongSiteUrl = siteUrl.length > 17; + // 1 row - max 20 chars, max that fits - 12nemanjam.github.io + const isLongSiteUrl = siteUrl.length > 20; // max 6 rows x 10-15 chars const limitedTitle = limitString(title, 70);