This commit is contained in:
MartinBraquet
2026-02-26 11:23:01 +01:00
parent 1086f6b4e2
commit fa922bdcbe

View File

@@ -30,14 +30,14 @@ function OgProfile(props: ogProps) {
typeof keywords === 'string' ? (keywords ? keywords.split(',') : []) : (keywords ?? [])
const allTags = [...keywordsList].filter(Boolean).slice(0, 8)
const maxChars = 200
const maxChars = 220
if (headline && headline.length > maxChars) {
headline = headline.slice(0, maxChars) + '...'
}
const totalChars = (headline?.length || 0) + (allTags?.join(' ')?.length || 0) + name.length * 3
const isLargerPicLayout = totalChars < 220
const isLargerPicLayout = totalChars < maxChars
console.log(props)