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

center is not center on global notify (too much right) #120

Open
VigibotDev opened this issue Jul 27, 2018 · 1 comment
Open

center is not center on global notify (too much right) #120

VigibotDev opened this issue Jul 27, 2018 · 1 comment

Comments

@VigibotDev
Copy link

Bad centering calculation make the center position unusable on mobile and unsightly on PC :(
All device display the global notify too much right.

@invasoria
Copy link

I've always had to tweak this because on mobile devices the globally centered option would not work.

What I regularly do is:

  • In the notify.js or notify.min.js file I search for "45%" and change that default value from the center option to "50%".
  • Then I use the miraculous horizontal centering code in a CSS file or within a style tag in the head:

.notifyjs-corner { left: 50%; -moz-transform: translateX(-50%); -webkit-transform: translateX(-50%); -o-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%); }

And that always does the trick.

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