brendmanager/openspec/changes/archive/2026-11-16-brm-41-telegram-cover-name/design.md
Peppa 5c87abc521
All checks were successful
peppa/lint lint: success за 1с
peppa/test test: success за 1с
ci / checks (pull_request) Successful in 11s
deploy / deploy (pull_request) Successful in 24s
BRM-41: имя на обложках Telegram помещается целиком и не заходит на круг
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 23:27:34 +05:00

4 lines
595 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Решение
В `build.mjs` у обложки Telegram кегль имени подбирается по свободной ширине (ширина имени ≈ 9,3 кегля PT Serif Bold): без фото — до полей и запас 60 px, с фото — до круга с зазором 40 px. Круг, цвета, шрифты, подпись не менялись; подпись поднята вместе с именем. Остальные обложки/посты вызываются без `fitName`.
Картинки «до/после» — в `before-after/`.