forked from tangled.org/core
Monorepo for Tangled

appview/repo: fix og description truncating

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>

anirudh.fi e810bd10 c6cb9912

verified
Changed files
+2 -2
appview
+2 -2
appview/repo/opengraph.go
··· 82 82 // Draw description (DrawText handles multi-line wrapping automatically) 83 83 descriptionCard.SetMargin(10) 84 84 description := repo.Description 85 - if len(description) > 80 { 86 - description = description[:100] + "…" 85 + if len(description) > 70 { 86 + description = description[:70] + "…" 87 87 } 88 88 89 89 _, err = descriptionCard.DrawText(description, color.RGBA{88, 96, 105, 255}, 36, ogcard.Top, ogcard.Left)