bskyogcard: support emoji, more languages, long starter pack names (#4668)

This commit is contained in:
devin ivy 2024-06-27 13:02:29 -04:00 committed by GitHub
parent f6b138f709
commit 49396451ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 413 additions and 163 deletions

View file

@ -43,6 +43,7 @@ export function StarterPack(props: {
} else {
imagesAcross.push(...imagesExceptCreator.slice(0, 7))
}
const isLongTitle = record ? record.name.length > 30 : false
return (
<div
style={{
@ -130,7 +131,9 @@ export function StarterPack(props: {
<div
style={{
padding: '75px 30px 0px',
fontSize: 65,
fontSize: isLongTitle ? 55 : 65,
display: 'flex',
textAlign: 'center',
}}>
{record?.name || 'Starter Pack'}
</div>