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

Native emojis :before element aligning and size issue #385

Open
closedi opened this issue Aug 2, 2021 · 1 comment
Open

Native emojis :before element aligning and size issue #385

closedi opened this issue Aug 2, 2021 · 1 comment

Comments

@closedi
Copy link

closedi commented Aug 2, 2021

Hello. I've noticed an issue with native emoji sizing and :before element while hovering emojis. Issue is reproducible even on your demo page https://ngx-emoji-mart.vercel.app/
For instance, if I set emoji set as Native, the actual inserting #text elements doesn't match emojiSize property (actual emoji element sizing is about 33px width and 32px height instead of expected 24px set), as a result we have wrong-aligned hovering effect and total width increased with a X-axis scrollbar appeared. Is this a known issue, could you fix this somehow?

emoji-mart.demo.app.issue.mp4

Demo video attached, I also change hovering color to red just in visibility purposes.

@BobbyTable
Copy link

Noticed this same problem, my workaround was some css to target the element. Note that this keeps the size but centers it

.emoji-mart .emoji-mart-emoji span {
		left: -.15em;
		top: -.1em;
}

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

2 participants