Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shrink custom fields on certificates so they always fit in one line #1645

Open
felipecalvo opened this issue Jul 29, 2021 · 0 comments
Open

Comments

@felipecalvo
Copy link
Contributor

We had a user whose very long name didn't fit in one line, and so it overlapped with everything else. Our quick solution was to reduce the font size a little bit - from 3rem to 2.7rem - and then re-send him the certificate. This, of course, shrinks everyone's name in the certificate, whether it fit or not.

What would be nice, though, is being able to set a max-font-size and, if it doesn't fit in one line, shrink it as little as possible so it does. This is not possible by CSS alone, it would seem, so it probably requires some JS trickery. I'm not sure how that would affect the PDF generation, either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant