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

Custom emojis that have non square size #18

Open
RedKage opened this issue May 28, 2018 · 0 comments
Open

Custom emojis that have non square size #18

RedKage opened this issue May 28, 2018 · 0 comments

Comments

@RedKage
Copy link

RedKage commented May 28, 2018

Here is the issue: http://prntscr.com/jnlsip

Custom emoji:

[
{"name":"thumbsupparrot","short_names":["thumbsupparrot"],"text":"","emoticons":[],"keywords":["thumbsupparrot"],"imageUrl":"http://cultofthepartyparrot.com/parrots/thumbsupparrot.gif"}
]

Which renders this CSS:

element.style {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url(http://cultofthepartyparrot.com/parrots/thumbsupparrot.gif);
    background-size: 100%;
}

I'm fixing this using this local stylus in my component which holds the picker

    :global(.emoji-mart-emoji)
      span
        background-position center
        background-repeat no-repeat
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