-
Notifications
You must be signed in to change notification settings - Fork 123
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
Icon not centered on mobile #97
Comments
My hunch is that this is more of general styling issue than an EasyButton issue. I'm happy to help with what I can though. I'd guess that this stems from putting a large/wide character into a smaller, square box. If you set |
I'm probably late to this thread but just had to work through this myself:
This will remove the padding and allow your icon to be centered within the button. There may be a more elegant way of changing the button style when you initially create it. Hope this helps get you on the right track! |
I found the same problem on desktop computers |
|
For me, adding
In my case, i use a trick to place icons everywhere, using an extra CSS file and a function. But in the end, it results in the same problem as posted here, so even though they are slightly different situations, this solution should work for both. |
I am using leaflet embeded into a Wordpress site. Had a similar issue.
|
Icon looks centered on desktop but is pushed to the right on mobile (iPhone X)
Any ideas how to fix?
The text was updated successfully, but these errors were encountered: